Data Types and Variables Which of the following automatic type conversion will be possible? byte to int int to long short to int long to int byte to int int to long short to int long to int ANSWER DOWNLOAD EXAMIANS APP
Data Types and Variables Size of float and double in Java is 32 and 32 32 and 64 64 and 64 64 and 32 32 and 32 32 and 64 64 and 64 64 and 32 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 ) ; Throws exception. Does not compile as Integer and String are API class names. 34 S 34 S Throws exception. Does not compile as Integer and String are API class names. 34 S 34 S ANSWER DOWNLOAD EXAMIANS APP
Data Types and Variables Size of int in Java is 32 bit 64 bit Depends on execution environment 16 bit 32 bit 64 bit Depends on execution environment 16 bit 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. } 128 Compilation fails with an error at line 3 None of these Compilation fails with an error at line 4 0 128 Compilation fails with an error at line 3 None of these Compilation fails with an error at line 4 0 ANSWER DOWNLOAD EXAMIANS APP
Data Types and Variables Determine output:class A{ public static void main(String args[]){ int x; x = 10; if(x == 10){ int y = 20; System.out.print("x and y: "+ x + " " + y); y = x*2; } y = 100; System.out.print("x and y: " + x + " " + y); }} Error 10 20 10 100 10 20 10 10 10 20 10 20 Error 10 20 10 100 10 20 10 10 10 20 10 20 ANSWER DOWNLOAD EXAMIANS APP