Data Types and Variables Automatic type conversion in Java takes place when 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. All of these Two type are compatible and size of destination type is equal of source type. 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 is not initialized 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 ANSWER DOWNLOAD EXAMIANS APP
Data Types and Variables Java is a ........... language. weakly typed None of these moderate typed strongly typed weakly typed None of these moderate typed strongly typed ANSWER DOWNLOAD EXAMIANS APP
Data Types and Variables Which of the following automatic type conversion will be possible? int to long long to int byte to int short to int int to long long to int byte to int short to int ANSWER DOWNLOAD EXAMIANS APP
Data Types and Variables In Java byte, short, int and long all of these are unsigned None of these Both of the above signed unsigned None of these Both of the above signed ANSWER DOWNLOAD EXAMIANS APP
Data Types and Variables The following fraction of codedouble STATIC = 2.5 ;System.out.println( STATIC ); 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 None of these ANSWER DOWNLOAD EXAMIANS APP