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 How many primitive data types are there in Java? 9 7 8 6 9 7 8 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 Throws Exception 20 21 Compilation Error 22 Throws Exception 20 21 Compilation Error ANSWER DOWNLOAD EXAMIANS APP
Data Types and Variables Which of the following automatic type conversion will be possible? short to int byte to int int to long long to int short to int byte to int int to long long to int 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 0 3 2.5 25 2 0 3 2.5 25 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 Does not compile as Integer and String are API class names. S Throws exception. 34 S 34 Does not compile as Integer and String are API class names. S Throws exception. 34 S ANSWER DOWNLOAD EXAMIANS APP