Data Types and Variables Which of the following automatic type conversion will be possible? long to int byte to int short to int int to long long to int byte to int short to int int to long ANSWER DOWNLOAD EXAMIANS APP
Data Types and Variables In Java byte, short, int and long all of these are unsigned None of these Both of the above signed unsigned None of these Both of the above signed ANSWER DOWNLOAD EXAMIANS APP
Data Types and Variables Automatic type conversion in Java takes place when 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. Two type are compatible and size of destination type is larger than source type. ANSWER DOWNLOAD EXAMIANS APP
Data Types and Variables Size of int in Java is 16 bit 64 bit Depends on execution environment 32 bit 16 bit 64 bit Depends on execution environment 32 bit 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 ) ; }} Compilation Error 22 Throws Exception 21 20 Compilation Error 22 Throws Exception 21 20 ANSWER DOWNLOAD EXAMIANS APP
Data Types and Variables The following fraction of codedouble STATIC = 2.5 ;System.out.println( STATIC ); Raises an exception Prints 2.5 None of these Rraises an error as STATIC is used as a variable which is a keyword Raises an exception Prints 2.5 None of these Rraises an error as STATIC is used as a variable which is a keyword ANSWER DOWNLOAD EXAMIANS APP