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); }} 12 11 5 None of these 4 12 11 5 None of these 4 ANSWER DOWNLOAD EXAMIANS APP
Data Types and Variables In Java byte, short, int and long all of these are Both of the above unsigned signed None of these Both of the above unsigned signed None of these 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 Error 10 20 10 20 10 20 10 100 10 20 10 10 Error 10 20 10 20 10 20 10 100 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 ) ; 34 S S Does not compile as Integer and String are API class names. Throws exception. 34 34 S S Does not compile as Integer and String are API class names. Throws exception. 34 ANSWER DOWNLOAD EXAMIANS APP
Data Types and Variables What will be output of the following program code?public class Test{public static void main(String[] a){short x = 10;x = x*5;System.out.print(x);} } 10 Compilation Error 50 None of these 10 Compilation Error 50 None of these ANSWER DOWNLOAD EXAMIANS APP
Data Types and Variables Size of int in Java is 32 bit Depends on execution environment 16 bit 64 bit 32 bit Depends on execution environment 16 bit 64 bit ANSWER DOWNLOAD EXAMIANS APP