Question: 1 -
What is a Primitive Data Type in Java?
-
Data type, which is implemented in an Object-oriented way.
-
Data Type which is implemented in a non-object oriented way.
-
Data Type which is implemented in a machine-dependent way
-
None of the above
Answer:
Data Type which is implemented in a non-object oriented way.
Solution not available.
Question: 2 -
What does a Data Type in Java refers to?
-
The place where data is stored
-
The technique how data is retreived
-
None of the above
-
The type or variety of data being handled for reading and writing
Answer:
The type or variety of data being handled for reading and writing
Solution:
Integers, Real numbers, Boolean, Characters etc
Integers, Real numbers, Boolean, Characters etc
Question: 3 -
Which data type among the following is an implementation of Objects or OOPs?
-
byte
-
char
-
int
-
None of the above
Answer:
None of the above
Solution:
All primitive data types are implemented in a Non-Object Oriented way.
All primitive data types are implemented in a Non-Object Oriented way.
Question: 4 -
Choose the wrong statement about Java programming?
-
Java supports signed integers
-
Java supports unsigned integers
-
None of the above
-
Java supports signed char
Answer:
Java supports unsigned integers
Solution:
Only C language supports unsigned integers. Java does not support.
Only C language supports unsigned integers. Java does not support.
Question: 5 -
which among the following is not a Data Type in Java?
-
short
-
int
-
long double
-
double
Answer:
long double
Solution:
"long double" is present only in C language.
"long double" is present only in C language.