Data Types and Variables How many primitive data types are there in Java? 8 6 7 9 8 6 7 9 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 Compiler error -127 129 None of these 2 Compiler error -127 129 None of these ANSWER DOWNLOAD EXAMIANS APP
Data Types and Variables Which of the following automatic type conversion will be possible? int to long long to int short to int byte to int int to long long to int short to int byte to int ANSWER DOWNLOAD EXAMIANS APP
Data Types and Variables What would be the output of the following fraction of code ?int Integer = 34 ;char String = 'S' ;System.out.print( Integer ) ;System.out.print( String ) ; 34 S 34 Throws exception. S Does not compile as Integer and String are API class names. 34 S 34 Throws exception. S Does not compile as Integer and String are API class names. ANSWER DOWNLOAD EXAMIANS APP
Data Types and Variables Java is a ........... language. weakly typed moderate typed None of these strongly typed weakly typed moderate typed None of these strongly typed 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 ) ; }} Compilation Error 21 22 20 Throws Exception Compilation Error 21 22 20 Throws Exception ANSWER DOWNLOAD EXAMIANS APP