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); }} 3 0 25 2 2.5 3 0 25 2 2.5 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); }} 4 12 11 None of these 5 4 12 11 None of these 5 ANSWER DOWNLOAD EXAMIANS APP
Data Types and Variables What will be the output for the below code ?1. public class Test{2. public static void main(String[] args){3. byte i = 128;4. System.out.println(i);5. }6. } 0 128 None of these Compilation fails with an error at line 3 Compilation fails with an error at line 4 0 128 None of these Compilation fails with an error at line 3 Compilation fails with an error at line 4 ANSWER DOWNLOAD EXAMIANS APP
Data Types and Variables The smallest integer type is ......... and its size is ......... bits. short, 16 byte, 8 short, 16 short, 8 short, 16 byte, 8 short, 16 short, 8 ANSWER DOWNLOAD EXAMIANS APP
Data Types and Variables In Java, the word true is ................ Same as value 1 A Java keyword Same as value 0 A Boolean literal Same as value 1 A Java keyword Same as value 0 A Boolean literal ANSWER DOWNLOAD EXAMIANS APP
Data Types and Variables Java is a ........... language. moderate typed None of these strongly typed weakly typed moderate typed None of these strongly typed weakly typed ANSWER DOWNLOAD EXAMIANS APP