Java MCQ - English
An expression involving byte, int, and literal numbers is promoted to which of t
Home | Discussion ForumAn expression involving byte, int, and literal numbers is promoted to which of these?
int
long
byte
float
Answer : A
View More Related Question
1) What is Truncation is Java?
Floating-point value assigned to an integer type
Integer value assigned to floating type
Floating-point value assigned to an Floating type
Integer value assigned to floating type
View Answer
2) An expression involving byte, int, and literal numbers is promoted to which of these?
3) Which of the following automatic type conversion will be possible?
4) What is the prototype of the default constructor of this class? public class prototype { }
5) Which of these is necessary condition for automatic type conversion in Java?
The destination type is smaller than source type
The destination type is larger than source type
The destination type can be larger or smaller than source type
None of the mentioned
View Answer