Data Types and Variables Which of the following automatic type conversion will be possible? byte to int int to long long to int short to int byte to int int to long long to int short to int 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 Depends on execution environment 32 bit 16 bit 64 bit Depends on execution environment 32 bit 16 bit 64 bit ANSWER DOWNLOAD EXAMIANS APP
Data Types and Variables Determine output:public class Test{int i = 34;public static void main(String args[]){Test t1 = new Test();Test t2 = new Test();t1.i = 65;System.out.print(t1.i);System.out.print(t2.i);}} 34 34 34 65 65 65 65 34 34 34 34 65 65 65 65 34 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 larger than source type. Two type are compatible and size of destination type is shorter than source type. Two type are compatible and size of destination type is equal of source type. All of these 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. Two type are compatible and size of destination type is equal of source type. ANSWER DOWNLOAD EXAMIANS APP
Data Types and Variables What will be output of the following program code?public class Test{public static void main(String[] a){short x = 10;x = x*5;System.out.print(x);} } Compilation Error None of these 50 10 Compilation Error None of these 50 10 ANSWER DOWNLOAD EXAMIANS APP