Data Types and Variables Size of int in Java is 64 bit 16 bit Depends on execution environment 32 bit 64 bit 16 bit Depends on execution environment 32 bit 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 false Will not compile as boolean can never be static Prints true Will not compile as boolean is not initialized Prints false Will not compile as boolean can never be static Prints true Will not compile as boolean is not initialized 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 S 34 Throws exception. Does not compile as Integer and String are API class names. S 34 S 34 Throws exception. Does not compile as Integer and String are API class names. ANSWER DOWNLOAD EXAMIANS APP
Data Types and Variables Which of the following automatic type conversion will be possible? short to int byte to int int to long long to int short to int byte to int int to long long to int ANSWER DOWNLOAD EXAMIANS APP
Data Types and Variables What is the output for the below code ?1. public class Test{2. public static void main(String[] args){3. int i = 010;4. int j = 07;5. System.out.println(i);6. System.out.println(j);7. }8. } Compilation fails with an error at line 3 None of these 8 7 10 7 Compilation fails with an error at line 5 Compilation fails with an error at line 3 None of these 8 7 10 7 Compilation fails with an error at line 5 ANSWER DOWNLOAD EXAMIANS APP
Data Types and Variables Java is a ........... language. strongly typed moderate typed None of these weakly typed strongly typed moderate typed None of these weakly typed ANSWER DOWNLOAD EXAMIANS APP