Data Types and Variables The smallest integer type is ......... and its size is ......... bits. short, 16 short, 8 short, 16 byte, 8 short, 16 short, 8 short, 16 byte, 8 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 Throws exception. S 34 S Does not compile as Integer and String are API class names. 34 Throws exception. S 34 S ANSWER DOWNLOAD EXAMIANS APP
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 What is the output for the below code?public class Test{ int _$; int $7; int do; public static void main(String argv[]){ Test test = new Test(); test.$7=7; test.do=9; System.out.println(test.$7); System.out.println(test.do); System.out.println(test._$); }} None of these 7 9 0 7 0 0 Compile error - $7 is not valid identifier. Compile error - do is not valid identifier. None of these 7 9 0 7 0 0 Compile error - $7 is not valid identifier. Compile error - do is not valid identifier. ANSWER DOWNLOAD EXAMIANS APP
Data Types and Variables Determine output:public class Test{int i = 34;public static void main(String args[]){Test t1 = new Test();Test t2 = new Test();t1.i = 65;System.out.print(t1.i);System.out.print(t2.i);}} 65 65 34 65 34 34 65 34 65 65 34 65 34 34 65 34 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); }} 12 5 4 11 None of these 12 5 4 11 None of these ANSWER DOWNLOAD EXAMIANS APP