Data Types and Variables How many primitive data types are there in Java? 8 7 6 9 8 7 6 9 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); }} 2.5 2 3 25 0 2.5 2 3 25 0 ANSWER DOWNLOAD EXAMIANS APP
Data Types and Variables Size of int in Java is Depends on execution environment 64 bit 32 bit 16 bit Depends on execution environment 64 bit 32 bit 16 bit 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. } 0 Compilation fails with an error at line 5 None of these 17 Compilation fails with an error at line 8 0 Compilation fails with an error at line 5 None of these 17 Compilation fails with an error at line 8 ANSWER DOWNLOAD EXAMIANS APP
Data Types and Variables Java is a ........... language. moderate typed weakly typed strongly typed None of these moderate typed weakly typed strongly typed None of these ANSWER DOWNLOAD EXAMIANS APP
Data Types and Variables In Java, the word true is ................ A Java keyword Same as value 0 A Boolean literal Same as value 1 A Java keyword Same as value 0 A Boolean literal Same as value 1 ANSWER DOWNLOAD EXAMIANS APP