Data Types and Variables How many primitive data types are there in Java? 9 8 7 6 9 8 7 6 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 ) ; }} 22 Compilation Error 20 Throws Exception 21 22 Compilation Error 20 Throws Exception 21 ANSWER DOWNLOAD EXAMIANS APP
Data Types and Variables What will be output of following program?public class Test{ public static void main(String[] args){ byte b=127; b++; b++; System.out.println(b); }} 2 None of these -127 129 Compiler error 2 None of these -127 129 Compiler error ANSWER DOWNLOAD EXAMIANS APP
Data Types and Variables Which of the following automatic type conversion will be possible? int to long byte to int short to int long to int int to long byte to int short to int long to int 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
Data Types and Variables Size of float and double in Java is 64 and 32 64 and 64 32 and 64 32 and 32 64 and 32 64 and 64 32 and 64 32 and 32 ANSWER DOWNLOAD EXAMIANS APP