JAVA DATATYPES

Which of the following is a primitive data type in Java?
Int
String
ArrayList
Object
Which of the following are reference data types in Java?
String
ArrayList
Int
Double
What is the size of the 'char' data type in Java?
2 bytes
1 byte
4 bytes
8 bytes
Which of the following are valid data types in Java?
Boolean
Char[]
String[]
Void
What is the default value for an 'int' variable in Java?
0
Null
False
NaN
Which of the following are floating-point data types in Java?
Float
Double
Int
Long
What is the maximum value that can be stored in a 'byte' variable in Java?
127
255
32767
2147483647
Which of the following are non-primitive data types in Java?
String
Int
Double
Boolean
What is the range of values that can be stored in a 'short' variable in Java?
-32768 to 32767
0 to 65535
-2147483648 to 2147483647
-9223372036854775808 to 9223372036854775807
What is the difference between 'float' and 'double' data types in Java?
{"name":"JAVA DATATYPES", "url":"https://www.quiz-maker.com/QPREVIEW","txt":"Which of the following is a primitive data type in Java?, Which of the following are reference data types in Java?, What is the size of the 'char' data type in Java?","img":"https://www.quiz-maker.com/3012/images/ogquiz.png"}
Make your own Survey
- it's free to start.