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