Data Types and Variables How many primitive data types are there in Java? 6 8 9 7 6 8 9 7 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); }} 25 0 2.5 2 3 25 0 2.5 2 3 ANSWER DOWNLOAD EXAMIANS APP
Data Types and Variables Java is a ........... language. weakly typed moderate typed strongly typed None of these weakly typed moderate typed strongly typed None of these ANSWER DOWNLOAD EXAMIANS APP
Data Types and Variables In Java byte, short, int and long all of these are signed unsigned Both of the above None of these signed unsigned Both of the above None of these ANSWER DOWNLOAD EXAMIANS APP
Data Types and Variables What is the output of the following program?public class Test{static int x = 10 ; public static void main(String[] a){ Test test = new Test( ) ; Test test1 = new Test( ) ; test.x += 1 ; System.out.println( test.x + test1.x ) ; }} 21 20 Compilation Error 22 Throws Exception 21 20 Compilation Error 22 Throws Exception ANSWER DOWNLOAD EXAMIANS APP
Data Types and Variables In Java, the word true is ................ A Java keyword Same as value 0 Same as value 1 A Boolean literal A Java keyword Same as value 0 Same as value 1 A Boolean literal ANSWER DOWNLOAD EXAMIANS APP