Data Types and Variables The following program:public class Test{ static boolean isOK; public static void main(String args[]){ System.out.print(isOK); } } Will not compile as boolean is not initialized Prints true Will not compile as boolean can never be static Prints false Will not compile as boolean is not initialized Prints true Will not compile as boolean can never be static Prints false ANSWER DOWNLOAD EXAMIANS APP
Data Types and Variables In Java, the word true is ................ A Java keyword A Boolean literal Same as value 1 Same as value 0 A Java keyword A Boolean literal Same as value 1 Same as value 0 ANSWER DOWNLOAD EXAMIANS APP
Data Types and Variables In Java byte, short, int and long all of these are Both of the above None of these signed unsigned Both of the above None of these signed unsigned 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 20 21 Throws Exception 22 Compilation Error 20 21 Throws Exception 22 ANSWER DOWNLOAD EXAMIANS APP
Data Types and Variables Java is a ........... language. None of these moderate typed weakly typed strongly typed None of these moderate typed weakly typed strongly typed ANSWER DOWNLOAD EXAMIANS APP
Data Types and Variables Determine output:class A{ public static void main(String args[]){ int x; x = 10; if(x == 10){ int y = 20; System.out.print("x and y: "+ x + " " + y); y = x*2; } y = 100; System.out.print("x and y: " + x + " " + y); }} Error 10 20 10 20 10 20 10 10 10 20 10 100 Error 10 20 10 20 10 20 10 10 10 20 10 100 ANSWER DOWNLOAD EXAMIANS APP