Data Types and Variables What will be output of the following program code?public class Test{public static void main(String[] a){short x = 10;x = x*5;System.out.print(x);} } None of these 10 Compilation Error 50 None of these 10 Compilation Error 50 ANSWER DOWNLOAD EXAMIANS APP
Data Types and Variables In Java, the word true is ................ A Boolean literal A Java keyword Same as value 1 Same as value 0 A Boolean literal A Java keyword Same as value 1 Same as value 0 ANSWER DOWNLOAD EXAMIANS APP
Data Types and Variables Java is a ........... language. moderate typed strongly typed weakly typed None of these moderate typed strongly typed weakly typed None of these ANSWER DOWNLOAD EXAMIANS APP
Data Types and Variables Which of the following automatic type conversion will be possible? long to int int to long byte to int short to int long to int int to long byte to int short to int ANSWER DOWNLOAD EXAMIANS APP
Data Types and Variables What is the output for the below code?public class Test{ int _$; int $7; int do; public static void main(String argv[]){ Test test = new Test(); test.$7=7; test.do=9; System.out.println(test.$7); System.out.println(test.do); System.out.println(test._$); }} Compile error - do is not valid identifier. 7 9 0 Compile error - $7 is not valid identifier. 7 0 0 None of these Compile error - do is not valid identifier. 7 9 0 Compile error - $7 is not valid identifier. 7 0 0 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 ) ; }} 22 20 Compilation Error 21 Throws Exception 22 20 Compilation Error 21 Throws Exception ANSWER DOWNLOAD EXAMIANS APP