Data Types and Variables In Java byte, short, int and long all of these are unsigned signed None of these Both of the above unsigned signed None of these Both of the above 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 float double Exception is thrown at runtime Compilation Error float double Exception is thrown at runtime 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 2.5 25 0 2 3 2.5 25 0 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 ) ; }} 22 Throws Exception 20 21 Compilation Error 22 Throws Exception 20 21 Compilation Error 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); }} 10 20 10 10 10 20 10 100 Error 10 20 10 20 10 20 10 10 10 20 10 100 Error 10 20 10 20 ANSWER DOWNLOAD EXAMIANS APP
Data Types and Variables Size of float and double in Java is 32 and 64 64 and 32 32 and 32 64 and 64 32 and 64 64 and 32 32 and 32 64 and 64 ANSWER DOWNLOAD EXAMIANS APP