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. } None of these 8 7 10 7 Compilation fails with an error at line 5 Compilation fails with an error at line 3 None of these 8 7 10 7 Compilation fails with an error at line 5 Compilation fails with an error at line 3 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 Exception is thrown at runtime Compilation Error double float Exception is thrown at runtime Compilation Error double ANSWER DOWNLOAD EXAMIANS APP
Data Types and Variables Size of int in Java is 32 bit 16 bit 64 bit Depends on execution environment 32 bit 16 bit 64 bit Depends on execution environment ANSWER DOWNLOAD EXAMIANS APP
Data Types and Variables In Java, the word true is ................ Same as value 0 Same as value 1 A Boolean literal A Java keyword Same as value 0 Same as value 1 A Boolean literal A Java keyword ANSWER DOWNLOAD EXAMIANS APP
Data Types and Variables Java is a ........... language. strongly typed moderate typed None of these weakly typed strongly typed moderate typed None of these weakly typed ANSWER DOWNLOAD EXAMIANS APP
Data Types and Variables Determine output:class A{ public static void main(String args[]){ int x; x = 10; if(x == 10){ int y = 20; System.out.print("x and y: "+ x + " " + y); y = x*2; } y = 100; System.out.print("x and y: " + x + " " + y); }} 10 20 10 10 10 20 10 20 10 20 10 100 Error 10 20 10 10 10 20 10 20 10 20 10 100 Error ANSWER DOWNLOAD EXAMIANS APP