Data Types and Variables In Java byte, short, int and long all of these are signed None of these Both of the above unsigned signed None of these Both of the above unsigned 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
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 0 3 25 2.5 2 0 3 25 2.5 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); } } Prints true Prints false Will not compile as boolean is not initialized Will not compile as boolean can never be static Prints true Prints false Will not compile as boolean is not initialized Will not compile as boolean can never be static ANSWER DOWNLOAD EXAMIANS APP
Data Types and Variables Size of int in Java is 32 bit 16 bit Depends on execution environment 64 bit 32 bit 16 bit Depends on execution environment 64 bit 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 ) ; 34 S 34 Throws exception. S Does not compile as Integer and String are API class names. 34 S 34 Throws exception. S Does not compile as Integer and String are API class names. ANSWER DOWNLOAD EXAMIANS APP