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); }} 11 None of these 5 4 12 11 None of these 5 4 12 ANSWER DOWNLOAD EXAMIANS APP
Data Types and Variables The following fraction of codedouble STATIC = 2.5 ;System.out.println( STATIC ); None of these Raises an exception Prints 2.5 Rraises an error as STATIC is used as a variable which is a keyword None of these Raises an exception Prints 2.5 Rraises an error as STATIC is used as a variable which is a keyword ANSWER DOWNLOAD EXAMIANS APP
Data Types and Variables What is the output for the below code ?1. public class Test{2. public static void main(String[] args){3. int i = 010;4. int j = 07;5. System.out.println(i);6. System.out.println(j);7. }8. } 10 7 Compilation fails with an error at line 3 8 7 None of these Compilation fails with an error at line 5 10 7 Compilation fails with an error at line 3 8 7 None of these Compilation fails with an error at line 5 ANSWER DOWNLOAD EXAMIANS APP
Data Types and Variables In Java, the word true is ................ Same as value 1 Same as value 0 A Java keyword A Boolean literal Same as value 1 Same as value 0 A Java keyword A Boolean literal ANSWER DOWNLOAD EXAMIANS APP
Data Types and Variables Size of int in Java is Depends on execution environment 16 bit 32 bit 64 bit Depends on execution environment 16 bit 32 bit 64 bit 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); }} float double Compilation Error Exception is thrown at runtime float double Compilation Error Exception is thrown at runtime ANSWER DOWNLOAD EXAMIANS APP