Which of the following is not considered as data type in Java?
String
int
boolean
double
9 practice sets · Page 1 of 1
Which of the following is not considered as data type in Java?
String
int
boolean
double
What is the range of 'byte' data type?
-127 to 127
-128 to 128
-127 to 128
-128 to 127
Which of the following is default value of 'double' data type?
0
0.0d
null
False
Which of the following is default value of 'int' data type?
0
null
True
False
What is the range of 'short' data type?
-(2^15+1) to (2^15-1)
-2^15 to 2^15
-(2^15-1) to (2^15+1)
-(2^15-1) to 2^15
What is the maximum value of 'byte' data type?
2^7
2^7+1
2^7-1
None of the mentioned
What is the minimum value of 'short' data type?
-32,768
-127
-2,147,483,648
-32,767
What is the size(in bytes) of 'byte' primitive data type?
4
1
2
8
Which of the following data type is used to fetch stream of data from network or file?
char
int
byte
double