Data Types and Variables In Java byte, short, int and long all of these are None of these signed unsigned Both of the above None of these signed unsigned Both of the above ANSWER DOWNLOAD EXAMIANS APP
Data Types and Variables How many primitive data types are there in Java? 6 7 9 8 6 7 9 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. Throws exception. S 34 34 S Does not compile as Integer and String are API class names. Throws exception. S 34 34 S ANSWER DOWNLOAD EXAMIANS APP
Data Types and Variables What will be the output for the below code ?1. public class Test{2. int i=8;3. int j=9;4. public static void main(String[] args){5. add();6. }7. public static void add(){8. int k = i+j;9. System.out.println(k);10. }11. } Compilation fails with an error at line 8 17 Compilation fails with an error at line 5 None of these 0 Compilation fails with an error at line 8 17 Compilation fails with an error at line 5 None of these 0 ANSWER DOWNLOAD EXAMIANS APP
Data Types and Variables The smallest integer type is ......... and its size is ......... bits. short, 16 short, 16 short, 8 byte, 8 short, 16 short, 16 short, 8 byte, 8 ANSWER DOWNLOAD EXAMIANS APP
Data Types and Variables What will the output of the following program?public class Test{ public static void main(String args[]){ float f = (1 / 4) * 10; int i = Math.round(f); System.out.println(i); }} 0 25 2.5 2 3 0 25 2.5 2 3 ANSWER DOWNLOAD EXAMIANS APP