Question

In: Computer Science

What is the difference between primitive types and abstract datatypes?

What is the difference between primitive types and abstract data types?

Solutions

Expert Solution

Primitive data types:
-----------------------
Primitive data types are the classification of data in language.
We know the representation of each primitive data types.
Example: integers, characters, floats, doubles etc.

Abstract data types:
---------------------
We don't know the representation of abstract data types.
Example:
"List" is an abstract data type in java.
So, It is like "List""
We can provide any data to this list. Which means representation of abstract data types is not defined before.
We can define Integer list as List 

Related Solutions

Explain the difference between Arrays and ArrayList. What are the limitation of arrays? How many primitive...
Explain the difference between Arrays and ArrayList. What are the limitation of arrays? How many primitive data types Java have? Please list them out and list the corresponding wrapper classes for each type. What is the different between String class and StringBuilder class?
What are abstract classes? What are interfaces? What is the difference?
What are abstract classes? What are interfaces? What is the difference?
what is the difference between the three types of down syndrome and where is the difference...
what is the difference between the three types of down syndrome and where is the difference in details?
Explain the differences between primitive and reference data types. Define the scope of a variable (hint:...
Explain the differences between primitive and reference data types. Define the scope of a variable (hint: local and global variable) Why is initialization of variables required. Differentiate between static, instance and local variables. Differentiate between widening and narrowing casting in java. the following table shows data type, its size, default value and the range. Filling in the missing values. TYPE SIZE (IN BYTES) DEFAULT RANGE boolean 1 bit true, false Char 2 ‘\0000’ to ‘\ffff’ Byte 0 Short 0 -215...
Currency options. What are the two types, and what is the difference between them? What is...
Currency options. What are the two types, and what is the difference between them? What is the break-even point for each type? Conceptually understand and be able to mathematically work with them. A. You purchase a put option on the Canadian dollar with a strike price of $0.91 and a premium of $0.02. If before expiration the spot rate of the Canadian dollar is $0.92, will you exercise the option? b. What if the spot rate before expiration is $0.88?...
Abstract: A marked difference exists in the inducibility of the gene inducible NO synthase (iNOS) between...
Abstract: A marked difference exists in the inducibility of the gene inducible NO synthase (iNOS) between humans and rodents.(Inducibility refers to the degree to which the expression of a gene can be changed.) The rodent iNOS gene can be induced to be expressed at high levels by several types of cytokines (a type of protein generated by immune cells), but these same cytokines have little to no effect on the expression of the human iNOS gene. A compelling molecular explanation...
What is the difference between actual and constructive notice? And what are three types of recording...
What is the difference between actual and constructive notice? And what are three types of recording statues, and how do they differ?
What is the difference between nominal and real GDP? What is unemployment? Which types of unemployment...
What is the difference between nominal and real GDP? What is unemployment? Which types of unemployment do you know? Which type of unemployment can be considered as acceptable? What should be its level? How is inflation calculated? What is the optimal level of inflation in the economy? What is “bad inflation”? Phillips curve. Which instruments of monetary policy do you know? Which instruments of fiscal policy do you know? What is contractionary/expansionary monetary policy? In which stage of business cycle...
What are the two major types of qualified retirement plans? What is the main difference between...
What are the two major types of qualified retirement plans? What is the main difference between them? Which one does a 401K plan fall under?
What types of performance discharge a contractual obligation? Under the UCC, what is the difference between...
What types of performance discharge a contractual obligation? Under the UCC, what is the difference between cancellation and termination of a contract?   What is an anticipatory breach, and under what circumstances can a party claim it?
ADVERTISEMENT
ADVERTISEMENT
ADVERTISEMENT