Data Types and Variables What is the output for the below code ?1. public class Test{2. public static void main(String[] args){3. byte b = 6;4. b+=8;5. System.out.println(b);6. b = b+7;7. System.out.println(b);8. }9. } None of these Compilation fails with an error at line 4 14 21 14 13 Compilation fails with an error at line 6 None of these Compilation fails with an error at line 4 14 21 14 13 Compilation fails with an error at line 6 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); }} Compilation Error Exception is thrown at runtime double float Compilation Error Exception is thrown at runtime double float 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
Data Types and Variables Size of int in Java is Depends on execution environment 64 bit 32 bit 16 bit Depends on execution environment 64 bit 32 bit 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 Does not compile as Integer and String are API class names. 34 Throws exception. S 34 S Does not compile as Integer and String are API class names. 34 Throws exception. S ANSWER DOWNLOAD EXAMIANS APP
Data Types and Variables Java is a ........... language. moderate typed weakly typed None of these strongly typed moderate typed weakly typed None of these strongly typed ANSWER DOWNLOAD EXAMIANS APP