Data Types and Variables Size of float and double in Java is 32 and 32 32 and 64 64 and 64 64 and 32 32 and 32 32 and 64 64 and 64 64 and 32 ANSWER DOWNLOAD EXAMIANS APP
Data Types and Variables What would be the output of the following fraction of code ?int Integer = 34 ;char String = 'S' ;System.out.print( Integer ) ;System.out.print( String ) ; S 34 S Throws exception. 34 Does not compile as Integer and String are API class names. S 34 S Throws exception. 34 Does not compile as Integer and String are API class names. 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 ) ; }} Compilation Error 20 Throws Exception 21 22 Compilation Error 20 Throws Exception 21 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); }} 3 0 25 2.5 2 3 0 25 2.5 2 ANSWER DOWNLOAD EXAMIANS APP
Data Types and Variables The following program:public class Test{ static boolean isOK; public static void main(String args[]){ System.out.print(isOK); } } Will not compile as boolean is not initialized Will not compile as boolean can never be static Prints false Prints true Will not compile as boolean is not initialized Will not compile as boolean can never be static Prints false Prints true ANSWER DOWNLOAD EXAMIANS APP
Data Types and Variables Which of the following automatic type conversion will be possible? long to int short to int int to long byte to int long to int short to int int to long byte to int ANSWER DOWNLOAD EXAMIANS APP