COMPUTER SCIENCE AND ENGINEERING
DATA STRUCTURES
Question
[CLICK ON ANY CHOICE TO KNOW THE RIGHT ANSWER]
|
|
True
|
|
False
|
|
Either A or B
|
|
None of the above
|
Detailed explanation-1: -Examples of non-primitive data structure are Array, Linked list, stack. Primitive data structure will contain some value, i.e., it cannot be NULL.
Detailed explanation-2: -Array, Linked List, Stack, etc. are some examples of non-primitive data structures.
Detailed explanation-3: -Examples of non-primitive types are Strings, Arrays, Classes, Interface, etc.
Detailed explanation-4: -Primitive data types-includes byte, short, int, long, float, double, boolean and char. Non-primitive data types-such as String, Arrays and Classes (you will learn more about these in a later chapter)
Detailed explanation-5: -Primitive Data Types. The eight primitives defined in Java are int, byte, short, long, float, double, boolean and char. These aren’t considered objects and represent raw values. They’re stored directly on the stack (check out this article for more information about memory management in Java).