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 can never be static Will not compile as boolean is not initialized Prints true Prints false Will not compile as boolean can never be static Will not compile as boolean is not initialized ANSWER DOWNLOAD EXAMIANS APP
Data Types and Variables The following fraction of codedouble STATIC = 2.5 ;System.out.println( STATIC ); None of these Prints 2.5 Rraises an error as STATIC is used as a variable which is a keyword Raises an exception None of these Prints 2.5 Rraises an error as STATIC is used as a variable which is a keyword Raises an exception ANSWER DOWNLOAD EXAMIANS APP
Data Types and Variables Which of the following automatic type conversion will be possible? short to int int to long long to int byte to int short to int int to long long to int byte to int ANSWER DOWNLOAD EXAMIANS APP
Data Types and Variables Size of int in Java is Depends on execution environment 16 bit 64 bit 32 bit Depends on execution environment 16 bit 64 bit 32 bit ANSWER DOWNLOAD EXAMIANS APP
Data Types and Variables Automatic type conversion in Java takes place when All of these Two type are compatible and size of destination type is equal of source type. Two type are compatible and size of destination type is larger than source type. Two type are compatible and size of destination type is shorter than source type. All of these Two type are compatible and size of destination type is equal of source type. Two type are compatible and size of destination type is larger than source type. Two type are compatible and size of destination type is shorter than source type. ANSWER DOWNLOAD EXAMIANS APP
Data Types and Variables In Java, the word true is ................ A Boolean literal Same as value 0 A Java keyword Same as value 1 A Boolean literal Same as value 0 A Java keyword Same as value 1 ANSWER DOWNLOAD EXAMIANS APP