Size of float and double in Java is 32 and 64 64 and 32 32 and 32 64 and 64 TRUE ANSWER : ? YOUR ANSWER : ?
Size of int in Java is 16 bit 32 bit Depends on execution environment 64 bit TRUE ANSWER : ? YOUR ANSWER : ?
In Java, the word true is ................ A Java keyword Same as value 0 Same as value 1 A Boolean literal TRUE ANSWER : ? YOUR ANSWER : ?
Java is a ........... language. moderate typed weakly typed strongly typed None of these 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); }} 129 2 -127 Compiler error None of these TRUE ANSWER : ? YOUR ANSWER : ?
Determine output:public class Test{int i = 34;public static void main(String args[]){Test t1 = new Test();Test t2 = new Test();t1.i = 65;System.out.print(t1.i);System.out.print(t2.i);}} 65 34 34 65 34 34 65 65 TRUE ANSWER : ? YOUR ANSWER : ?
What is the output for the below code ?1. public class Test{2. public static void main(String[] args){3. byte b = 6;4. b+=8;5. System.out.println(b);6. b = b+7;7. System.out.println(b);8. }9. } Compilation fails with an error at line 6 14 21 14 13 Compilation fails with an error at line 4 None of these TRUE ANSWER : ? YOUR ANSWER : ?
In Java byte, short, int and long all of these are None of these Both of the above unsigned signed TRUE ANSWER : ? YOUR ANSWER : ?
What will be the output for the below code ?1. public class Test{2. public static void main(String[] args){3. byte i = 128;4. System.out.println(i);5. }6. } 128 Compilation fails with an error at line 4 None of these 0 Compilation fails with an error at line 3 TRUE ANSWER : ? YOUR ANSWER : ?
What is the output for the below code ?1. public class Test{2. public static void main(String[] args){3. int i = 010;4. int j = 07;5. System.out.println(i);6. System.out.println(j);7. }8. } 10 7 Compilation fails with an error at line 5 8 7 Compilation fails with an error at line 3 None of these TRUE ANSWER : ? YOUR ANSWER : ?