Data Types and Variables Determine output:public class Test { static void test(float x){ System.out.print("float"); } static void test(double x){ System.out.print("double"); } public static void main(String[] args){ test(99.9); }} Exception is thrown at runtime float Compilation Error double Exception is thrown at runtime float Compilation Error double ANSWER DOWNLOAD EXAMIANS APP
Data Types and Variables 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 ) ; }} 21 20 Compilation Error Throws Exception 22 21 20 Compilation Error Throws Exception 22 ANSWER DOWNLOAD EXAMIANS APP
Data Types and Variables 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); }} 0 25 2 3 2.5 0 25 2 3 2.5 ANSWER DOWNLOAD EXAMIANS APP
Data Types and Variables 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. } None of these Compilation fails with an error at line 4 Compilation fails with an error at line 6 14 21 14 13 None of these Compilation fails with an error at line 4 Compilation fails with an error at line 6 14 21 14 13 ANSWER DOWNLOAD EXAMIANS APP
Data Types and Variables In Java, the word true is ................ Same as value 0 A Boolean literal Same as value 1 A Java keyword Same as value 0 A Boolean literal Same as value 1 A Java keyword ANSWER DOWNLOAD EXAMIANS APP
Data Types and Variables Size of int in Java is 16 bit Depends on execution environment 32 bit 64 bit 16 bit Depends on execution environment 32 bit 64 bit ANSWER DOWNLOAD EXAMIANS APP