Java is a ........... language. moderate typed weakly typed strongly typed None of these TRUE ANSWER : ? YOUR ANSWER : ?
Size of int in Java is 16 bit 64 bit 32 bit Depends on execution environment TRUE ANSWER : ? YOUR ANSWER : ?
What will the output of the following program?public class Test{ public static void main(String args[]){ float f = (1 / 4) * 10; int i = Math.round(f); System.out.println(i); }} 3 2 2.5 0 25 TRUE ANSWER : ? YOUR ANSWER : ?
Size of float and double in Java is 32 and 32 64 and 32 32 and 64 64 and 64 TRUE ANSWER : ? YOUR ANSWER : ?
In Java byte, short, int and long all of these are Both of the above signed unsigned None of these TRUE ANSWER : ? YOUR ANSWER : ?
The following program:public class Test{ static boolean isOK; public static void main(String args[]){ System.out.print(isOK); } } Prints true Prints false Will not compile as boolean is not initialized Will not compile as boolean can never be static TRUE ANSWER : ? YOUR ANSWER : ?
Which of the following automatic type conversion will be possible? int to long short to int byte to int long to int TRUE ANSWER : ? YOUR ANSWER : ?
What is the output of the following program?public class Test{static int x = 10 ; public static void main(String[] a){ Test test = new Test( ) ; Test test1 = new Test( ) ; test.x += 1 ; System.out.println( test.x + test1.x ) ; }} Compilation Error 21 Throws Exception 22 20 TRUE ANSWER : ? YOUR ANSWER : ?
What will be output of following program?public class Test{ public static void main(String[] args){ byte b=127; b++; b++; System.out.println(b); }} 2 -127 None of these Compiler error 129 TRUE ANSWER : ? YOUR ANSWER : ?