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); }} 3 2.5 0 2 25 3 2.5 0 2 25 ANSWER DOWNLOAD EXAMIANS APP
Data Types and Variables Size of int in Java is 64 bit 16 bit Depends on execution environment 32 bit 64 bit 16 bit Depends on execution environment 32 bit ANSWER DOWNLOAD EXAMIANS APP
Data Types and Variables Java is a ........... language. None of these weakly typed strongly typed moderate typed None of these weakly typed strongly typed moderate typed ANSWER DOWNLOAD EXAMIANS APP
Data Types and Variables What will be output of following program?public class Test{ public static void main(String[] args){ byte b=127; b++; b++; System.out.println(b); }} 129 2 -127 Compiler error None of these 129 2 -127 Compiler error None of these ANSWER DOWNLOAD EXAMIANS APP
Data Types and Variables In Java byte, short, int and long all of these are unsigned Both of the above signed None of these unsigned Both of the above signed None of these ANSWER DOWNLOAD EXAMIANS APP
Data Types and Variables The following fraction of codedouble STATIC = 2.5 ;System.out.println( STATIC ); Rraises an error as STATIC is used as a variable which is a keyword None of these Prints 2.5 Raises an exception Rraises an error as STATIC is used as a variable which is a keyword None of these Prints 2.5 Raises an exception ANSWER DOWNLOAD EXAMIANS APP