Which of the following data type stores longest floating-point value?
boolean
double
float
long
Answer and explanation
'double' is the longest data type with 64-bit defined by Java to store floating-point values.
ObjectiveMcq
Print Protected
This page is protected for print. Use the website to view the content.
10 practice sets · Page 1 of 1
Which of the following data type stores longest floating-point value?
boolean
double
float
long
'double' is the longest data type with 64-bit defined by Java to store floating-point values.
Which of the following data type is used to create a number for counting or indexing arrays?
byte
long
int
float
No explanation is available for this question yet.
Which of the following keyword is used to declare Byte data type?
Byte[]
BYTE
BYTES
byte
No explanation is available for this question yet.
Which of the following is smallest integer data type?
short
long
byte
double
'byte' is signed 8-bit smallest integer data type that has range from -128 to 127.
Which of following cannot be stored in character data type?
Special symbols
String
Letter
Digit
String is a collection of characters and is stored in a variable of string data type.
Which of the following is not a primitive data type?
enum
short
byte
char
An 'enum' data type is special data type that enables a variable to store set of predefined constants.
Which of the following data types comes under 'Floating' data type?
float
byte
double
a and c
Only 'float' and 'double' belong to floating-point numbers. 'byte' comes under 'Integer' data type.
Which of the following data types comes under 'Integer' data type?
short
long
int
all of the mentioned
No explanation is available for this question yet.
How many Primitive data types are there in Java?
4
2
8
7
Java defines eight simple types of data which are put in four groups. They are integers, floating-point numbers, boolean, characters.
Which of the following data types are available in Java?
Primitive Datatypes
Reference Datatypes
Both
None of the mentioned
Primitive Datatypes are defined by Java. Reference Datatypes are user defined, created using defined constructors of class.