Java MCQ - English
What is the range of byte data type in Java?
-128 to 127
-32768 to 32767
-2147483648 to 2147483647
None of the mentioned
Answer : A
View More Related Question
1) Automatic type conversion in Java takes place when
Two type are compatible and size of destination type is shorter than source type.
Two type are compatible and size of destination type is equal of source type.
Two type are compatible and size of destination type is larger than source type.
All of the above
View Answer
2) Which class is a library of functions to perform arithmetic operations of BigInteger and BigDecimal?
3) Size of float and double in Java is
4) The smallest integer type is _____ and its size is _____ bits.
5) What is the output of this program? class mainclass {
public static void main(String args[])
{
char a = 'A';
a++;
System.out.print((int)a);
}
}