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 Exception is thrown at runtime double Compilation Error float Exception is thrown at runtime double Compilation Error ANSWER DOWNLOAD EXAMIANS APP
Data Types and Variables Java is a ........... language. None of these moderate typed weakly typed strongly typed None of these moderate typed weakly typed strongly typed ANSWER DOWNLOAD EXAMIANS APP
Data Types and Variables Size of int in Java is 16 bit 64 bit Depends on execution environment 32 bit 16 bit 64 bit Depends on execution environment 32 bit 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 Throws Exception 22 20 21 Compilation Error Throws Exception 22 20 21 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 Does not compile as Integer and String are API class names. Throws exception. 34 S S 34 Does not compile as Integer and String are API class names. Throws exception. 34 S ANSWER DOWNLOAD EXAMIANS APP
Data Types and Variables The smallest integer type is ......... and its size is ......... bits. short, 16 byte, 8 short, 16 short, 8 short, 16 byte, 8 short, 16 short, 8 ANSWER DOWNLOAD EXAMIANS APP