Data Types and Variables What will be output of the following program code?public class Test{public static void main(String[] a){short x = 10;x = x*5;System.out.print(x);} } None of these 50 10 Compilation Error None of these 50 10 Compilation Error 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); }} 2 3 0 25 2.5 2 3 0 25 2.5 ANSWER DOWNLOAD EXAMIANS APP
Data Types and Variables Java is a ........... language. weakly typed moderate typed None of these strongly typed weakly typed moderate typed None of these strongly typed ANSWER DOWNLOAD EXAMIANS APP
Data Types and Variables In Java, the word true is ................ A Java keyword Same as value 0 Same as value 1 A Boolean literal A Java keyword Same as value 0 Same as value 1 A Boolean literal ANSWER DOWNLOAD EXAMIANS APP
Data Types and Variables The following fraction of codedouble STATIC = 2.5 ;System.out.println( STATIC ); None of these Prints 2.5 Rraises an error as STATIC is used as a variable which is a keyword Raises an exception None of these Prints 2.5 Rraises an error as STATIC is used as a variable which is a keyword Raises an exception ANSWER DOWNLOAD EXAMIANS APP
Data Types and Variables Which of the following automatic type conversion will be possible? byte to int long to int short to int int to long byte to int long to int short to int int to long ANSWER DOWNLOAD EXAMIANS APP