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); }} Compilation Error double Exception is thrown at runtime float Compilation Error double Exception is thrown at runtime float 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 ) ; Does not compile as Integer and String are API class names. 34 S Throws exception. S 34 Does not compile as Integer and String are API class names. 34 S Throws exception. S 34 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 ) ; }} 20 Throws Exception 22 Compilation Error 21 20 Throws Exception 22 Compilation Error 21 ANSWER DOWNLOAD EXAMIANS APP
Data Types and Variables The smallest integer type is ......... and its size is ......... bits. short, 8 short, 16 short, 16 byte, 8 short, 8 short, 16 short, 16 byte, 8 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); }} None of these 129 2 Compiler error -127 None of these 129 2 Compiler error -127 ANSWER DOWNLOAD EXAMIANS APP
Data Types and Variables Java is a ........... language. None of these weakly typed strongly typed moderate typed None of these weakly typed strongly typed moderate typed ANSWER DOWNLOAD EXAMIANS APP