Automatic type conversion in Java takes place when
1.Two type are compatible and size of destination type is larger than source type.
2.Two type are compatible and size of destination type is shorter than source type.
3.Two type are compatible and size of destination type is equal of source type.
4.None
Fill in the blank: Java is a _____ typed language.
1.Strongly
2.Moderate
3.Weakly
4.All of the above/None of the above
Fill in the blanks: The smallest integer type is _____and its size is _____ bits.
1.byte, 8
2.short, 8
3.byte, 16
4.short, 16
In Java byte, short, int and long all of these are
1.Unsigned
2.Signed
3.A and B
4.None of the above
Primitive types are the most basic data types available within the Java language. How many primitive data types are there in Java language?
1.5
2.6
3.7
4.8
What is the size of float and double in Java?
1.64 and 64
2.32 and 64
3.64 and 32
4.32 and 32
What is the size of int in Java language?
1.16 bit
2.32 bit
3.48 bit
4.64 bit
Which of the following automatic type conversion will be possible?
1.int to long
2.byte to int
3.short to int
4.long to int