Data Types and Variables In Java byte, short, int and long all of these are Both of the above unsigned None of these signed Both of the above unsigned None of these signed 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 34 S Does not compile as Integer and String are API class names. S Throws exception. 34 34 S Does not compile as Integer and String are API class names. S ANSWER DOWNLOAD EXAMIANS APP
Data Types and Variables The following program:public class Test{ static boolean isOK; public static void main(String args[]){ System.out.print(isOK); } } Will not compile as boolean can never be static Prints false Prints true Will not compile as boolean is not initialized Will not compile as boolean can never be static Prints false Prints true Will not compile as boolean is not initialized ANSWER DOWNLOAD EXAMIANS APP
Data Types and Variables Size of float and double in Java is 64 and 32 32 and 64 64 and 64 32 and 32 64 and 32 32 and 64 64 and 64 32 and 32 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); }} 2 2.5 0 3 25 2 2.5 0 3 25 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 Exception is thrown at runtime Compilation Error float double Exception is thrown at runtime Compilation Error float ANSWER DOWNLOAD EXAMIANS APP