Data Types and Variables Size of int in Java is 64 bit 32 bit 16 bit Depends on execution environment 64 bit 32 bit 16 bit Depends on execution environment 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 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 Compilation Error 20 Throws Exception 21 22 Compilation Error 20 Throws Exception 21 ANSWER DOWNLOAD EXAMIANS APP
Data Types and Variables What will be the output for the below code ?1. public class Test{2. public static void main(String[] args){3. byte i = 128;4. System.out.println(i);5. }6. } None of these 128 0 Compilation fails with an error at line 4 Compilation fails with an error at line 3 None of these 128 0 Compilation fails with an error at line 4 Compilation fails with an error at line 3 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 can never be static Prints true Will not compile as boolean is not initialized Prints false Will not compile as boolean can never be static Prints true Will not compile as boolean is not initialized ANSWER DOWNLOAD EXAMIANS APP
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