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 How many primitive data types are there in Java? 6 9 7 8 6 9 7 8 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); }} 25 2 3 2.5 0 25 2 3 2.5 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 ) ; }} 20 21 Compilation Error Throws Exception 22 20 21 Compilation Error Throws Exception 22 ANSWER DOWNLOAD EXAMIANS APP
Data Types and Variables Automatic type conversion in Java takes place when Two type are compatible and size of destination type is larger than source type. Two type are compatible and size of destination type is shorter than source type. Two type are compatible and size of destination type is equal of source type. All of these Two type are compatible and size of destination type is larger than source type. Two type are compatible and size of destination type is shorter than source type. Two type are compatible and size of destination type is equal of source type. All of these ANSWER DOWNLOAD EXAMIANS APP
Data Types and Variables Size of int in Java is 32 bit 64 bit 16 bit Depends on execution environment 32 bit 64 bit 16 bit Depends on execution environment ANSWER DOWNLOAD EXAMIANS APP