Data Types and Variables Automatic type conversion in Java takes place when 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. Two type are compatible and size of destination type is larger than source type. 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 65 34 34 65 65 65 34 34 65 34 34 65 65 65 ANSWER DOWNLOAD EXAMIANS APP
Data Types and Variables How many primitive data types are there in Java? 8 9 6 7 8 9 6 7 ANSWER DOWNLOAD EXAMIANS APP
Data Types and Variables Determine output:public class Test { static void test(float x){ System.out.print("float"); } static void test(double x){ System.out.print("double"); } public static void main(String[] args){ test(99.9); }} double Exception is thrown at runtime float Compilation Error double Exception is thrown at runtime float Compilation Error ANSWER DOWNLOAD EXAMIANS APP
Data Types and Variables Size of int in Java is 64 bit Depends on execution environment 32 bit 16 bit 64 bit Depends on execution environment 32 bit 16 bit ANSWER DOWNLOAD EXAMIANS APP
Data Types and Variables Java is a ........... language. weakly typed strongly typed None of these moderate typed weakly typed strongly typed None of these moderate typed ANSWER DOWNLOAD EXAMIANS APP