Data Types and Variables The following fraction of codedouble STATIC = 2.5 ;System.out.println( STATIC ); Raises an exception Rraises an error as STATIC is used as a variable which is a keyword None of these Prints 2.5 Raises an exception Rraises an error as STATIC is used as a variable which is a keyword None of these Prints 2.5 ANSWER DOWNLOAD EXAMIANS APP
Data Types and Variables Size of float and double in Java is 64 and 64 32 and 64 32 and 32 64 and 32 64 and 64 32 and 64 32 and 32 64 and 32 ANSWER DOWNLOAD EXAMIANS APP
Data Types and Variables In Java, the word true is ................ 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 A Java keyword ANSWER DOWNLOAD EXAMIANS APP
Data Types and Variables The following program:public class Test{ static boolean isOK; public static void main(String args[]){ System.out.print(isOK); } } Prints false 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 ANSWER DOWNLOAD EXAMIANS APP
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);} } Compilation Error None of these 10 50 Compilation Error None of these 10 50 ANSWER DOWNLOAD EXAMIANS APP
Data Types and Variables How many primitive data types are there in Java? 6 7 9 8 6 7 9 8 ANSWER DOWNLOAD EXAMIANS APP