What is the range of short 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 in java?
Which data type value is returned by all transcendental math functions in java?
Which component is used to compile, debug and execute java program?
Which component is responsible for converting byte code into machine specific code in java?
Which statement is true about java?
What is the function of interpreter?
Which of the following is long data type literal in java?
Which of these can be returned by the operator & in java?
In java, literal can be of which of these data types?
Which one of these lists contains all the keywords supported by Java programming language?
public interface Foo
{
int k = 4; // Line 1
}
Which three piece of codes are equivalent to line 1?
1. final int k = 4;
2. public int k = 4;
3. static int k = 4;
4. abstract int k = 4;
5. volatile int k = 4;
6. protected int k = 4;
What is the numerical range of a char in java?
Which of the following are legal declarations for classes and interfaces in java?
1. final abstract class Test {}
2. public static interface Test {}
3. final public class Test {}
4. protected abstract class Test {}
5. protected interface Test {}
6. abstract public class Test {}
Which of these is necessary condition for automatic type conversion in Java?
What is Truncation is Java?
Which operator is used to invert all the digits in binary representation of a number in java?
Which of these statements are incorrect?
Which datatype should be the result of expression1, so that the following expression works fine in java?
expression1 ? expression2 : expression3