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 ) ; Does not compile as Integer and String are API class names. Throws exception. 34 S 34 S Does not compile as Integer and String are API class names. Throws exception. 34 S 34 S ANSWER DOWNLOAD EXAMIANS APP
Data Types and Variables Size of int in Java is 16 bit 64 bit 32 bit Depends on execution environment 16 bit 64 bit 32 bit Depends on execution environment 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); }} double float Compilation Error Exception is thrown at runtime double float Compilation Error Exception is thrown at runtime ANSWER DOWNLOAD EXAMIANS APP
Data Types and Variables Java is a ........... language. weakly typed strongly typed None of these moderate typed weakly typed strongly typed None of these moderate typed ANSWER DOWNLOAD EXAMIANS APP
Data Types and Variables In Java, the word true is ................ A Java keyword 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 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);} } 10 None of these 50 Compilation Error 10 None of these 50 Compilation Error ANSWER DOWNLOAD EXAMIANS APP