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); }} double float Exception is thrown at runtime Compilation Error double float Exception is thrown at runtime Compilation Error ANSWER DOWNLOAD EXAMIANS APP
Data Types and Variables Size of int in Java is 64 bit Depends on execution environment 16 bit 32 bit 64 bit Depends on execution environment 16 bit 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 ) ; }} 20 Compilation Error Throws Exception 21 22 20 Compilation Error Throws Exception 21 22 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 Java is a ........... language. moderate typed None of these weakly typed strongly typed moderate typed None of these weakly typed strongly typed ANSWER DOWNLOAD EXAMIANS APP
Data Types and Variables In Java byte, short, int and long all of these are None of these signed Both of the above unsigned None of these signed Both of the above unsigned ANSWER DOWNLOAD EXAMIANS APP