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
Data Types and Variables Determine output:public class Test { static void test(float x){ System.out.print("float"); } static void test(double x){ System.out.print("double"); } public static void main(String[] args){ test(99.9); }} double Compilation Error float Exception is thrown at runtime double Compilation Error float Exception is thrown at runtime 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 Automatic type conversion in Java takes place when Two type are compatible and size of destination type is larger than source type. All of these 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. Two type are compatible and size of destination type is larger than source type. All of these 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. ANSWER DOWNLOAD EXAMIANS APP
Data Types and Variables Size of int in Java is 64 bit 32 bit Depends on execution environment 16 bit 64 bit 32 bit Depends on execution environment 16 bit ANSWER DOWNLOAD EXAMIANS APP
Data Types and Variables What would be the output of the following fraction of code ?int Integer = 34 ;char String = 'S' ;System.out.print( Integer ) ;System.out.print( String ) ; 34 S 34 Does not compile as Integer and String are API class names. Throws exception. S 34 S 34 Does not compile as Integer and String are API class names. Throws exception. S ANSWER DOWNLOAD EXAMIANS APP