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); }} Compilation Error double float Exception is thrown at runtime Compilation Error double float Exception is thrown at runtime ANSWER DOWNLOAD EXAMIANS APP
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. Two type are compatible and size of destination type is larger 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 shorter than source type. Two type are compatible and size of destination type is larger 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 Determine output:public class Test{ int a = 10; public void method(int a){ a += 1; System.out.println(++a); } public static void main(String args[]){ Test t = new Test(); t.method(3); }} None of these 4 11 12 5 None of these 4 11 12 5 ANSWER DOWNLOAD EXAMIANS APP
Data Types and Variables What will be output of following program?public class Test{ public static void main(String[] args){ byte b=127; b++; b++; System.out.println(b); }} 129 2 -127 None of these Compiler error 129 2 -127 None of these Compiler error ANSWER DOWNLOAD EXAMIANS APP
Data Types and Variables How many primitive data types are there in Java? 6 7 9 8 6 7 9 8 ANSWER DOWNLOAD EXAMIANS APP
Data Types and Variables Size of float and double in Java is 64 and 64 32 and 32 32 and 64 64 and 32 64 and 64 32 and 32 32 and 64 64 and 32 ANSWER DOWNLOAD EXAMIANS APP