Which of the following is a Literal Representation?
100
'100'
Sample
None of the mentioned
Browse topic-based Object Oriented System Design practice sets.
73 practice sets · Page 3 of 4
Which of the following is a Literal Representation?
100
'100'
Sample
None of the mentioned
How many reserved keywords are there in Java language?
50
52
49
45
Which of these is a reserved word in Java Programming Language?
method
native
subclasses
reference
Which of these is a valid keyword in Java?
interface
string
float
unsigned
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
Which of the following data type stores longest floating-point value?
boolean
double
float
long
Which of the following data type is used to create a number for counting or indexing arrays?
byte
long
int
float
Which of the following keyword is used to declare Byte data type?
Byte[]
BYTE
BYTES
byte
Which of the following is smallest integer data type?
short
long
byte
double
Which of following cannot be stored in character data type?
Special symbols
String
Letter
Digit
Which of the following is not a primitive data type?
enum
short
byte
char
Which of the following data types comes under 'Floating' data type?
float
byte
double
a and c