Data Types and Variables Size of int in Java is 16 bit Depends on execution environment 64 bit 32 bit 16 bit Depends on execution environment 64 bit 32 bit 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); }} 5 12 None of these 4 11 5 12 None of these 4 11 ANSWER DOWNLOAD EXAMIANS APP
Data Types and Variables How many primitive data types are there in Java? 7 9 6 8 7 9 6 8 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. byte b = 6;4. b+=8;5. System.out.println(b);6. b = b+7;7. System.out.println(b);8. }9. } Compilation fails with an error at line 4 None of these Compilation fails with an error at line 6 14 21 14 13 Compilation fails with an error at line 4 None of these Compilation fails with an error at line 6 14 21 14 13 ANSWER DOWNLOAD EXAMIANS APP
Data Types and Variables What would be the output of the following fraction of code ?int Integer = 34 ;char String = 'S' ;System.out.print( Integer ) ;System.out.print( String ) ; Does not compile as Integer and String are API class names. 34 S S 34 Throws exception. Does not compile as Integer and String are API class names. 34 S S 34 Throws exception. 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); }} Error 10 20 10 20 10 20 10 100 10 20 10 10 Error 10 20 10 20 10 20 10 100 10 20 10 10 ANSWER DOWNLOAD EXAMIANS APP