Data Types and Variables In Java, the word true is ................ Same as value 1 Same as value 0 A Boolean literal A Java keyword Same as value 1 Same as value 0 A Boolean literal A Java keyword ANSWER DOWNLOAD EXAMIANS APP
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); }} float double Exception is thrown at runtime Compilation Error float double Exception is thrown at runtime Compilation Error ANSWER DOWNLOAD EXAMIANS APP
Data Types and Variables Size of float and double in Java is 32 and 64 32 and 32 64 and 32 64 and 64 32 and 64 32 and 32 64 and 32 64 and 64 ANSWER DOWNLOAD EXAMIANS APP
Data Types and Variables What will be output of the following program code?public class Test{public static void main(String[] a){short x = 10;x = x*5;System.out.print(x);} } None of these 50 10 Compilation Error None of these 50 10 Compilation Error ANSWER DOWNLOAD EXAMIANS APP
Data Types and Variables What will be the output for the below code ?1. public class Test{2. int i=8;3. int j=9;4. public static void main(String[] args){5. add();6. }7. public static void add(){8. int k = i+j;9. System.out.println(k);10. }11. } 0 None of these 17 Compilation fails with an error at line 8 Compilation fails with an error at line 5 0 None of these 17 Compilation fails with an error at line 8 Compilation fails with an error at line 5 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 ) ; Throws exception. 34 S S Does not compile as Integer and String are API class names. 34 Throws exception. 34 S S Does not compile as Integer and String are API class names. 34 ANSWER DOWNLOAD EXAMIANS APP