What is the range of byte data type in Java?
Which of the following are legal lines of Java code?
1. int w = (int)888.8;
2. byte x = (byte)100L;
3. long y = (byte)100;
4. byte z = (byte)100L;
An expression involving byte, int, and literal numbers is promoted to which of these?
Which of these literals can be contained in float data type variable?
class increment {
public static void main(String args[])
{
int g = 3;
System.out.print(++g * 8);
}
}
What is the output of this program?
class area {
public static void main(String args[]){
double r, pi, a;
r = 9.8;
pi = 3.14;
a = pi * r * r;
System.out.println(a);
}
}
Which of these coding types is used for data type characters in Java?
Which of these values can a boolean variable contain?
Which of these is long data type literal?
Literal can be of which of these data types?
Which of these can not be used for a variable name in Java?
What is the prototype of the default constructor of this class?
public class prototype { }
Which of these operators is used to allocate memory to array variable in Java?