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 ) ; 34 S Does not compile as Integer and String are API class names. Throws exception. S 34 34 S Does not compile as Integer and String are API class names. Throws exception. S 34 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. } 14 13 Compilation fails with an error at line 6 14 21 None of these Compilation fails with an error at line 4 14 13 Compilation fails with an error at line 6 14 21 None of these Compilation fails with an error at line 4 ANSWER DOWNLOAD EXAMIANS APP
Data Types and Variables 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); }} Compiler error -127 2 None of these 129 Compiler error -127 2 None of these 129 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 3 2.5 25 2 0 3 2.5 25 2 ANSWER DOWNLOAD EXAMIANS APP
Data Types and Variables Size of int in Java is 64 bit Depends on execution environment 32 bit 16 bit 64 bit Depends on execution environment 32 bit 16 bit ANSWER DOWNLOAD EXAMIANS APP
Data Types and Variables Size of float and double in Java is 32 and 32 64 and 64 64 and 32 32 and 64 32 and 32 64 and 64 64 and 32 32 and 64 ANSWER DOWNLOAD EXAMIANS APP