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 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 Size of int in Java is Depends on execution environment 64 bit 16 bit 32 bit Depends on execution environment 64 bit 16 bit 32 bit ANSWER DOWNLOAD EXAMIANS APP
Data Types and Variables Determine output:public class Test{int i = 34;public static void main(String args[]){Test t1 = new Test();Test t2 = new Test();t1.i = 65;System.out.print(t1.i);System.out.print(t2.i);}} 65 65 65 34 34 34 34 65 65 65 65 34 34 34 34 65 ANSWER DOWNLOAD EXAMIANS APP
Data Types and Variables What is the output for the below code ?1. public class Test{2. public static void main(String[] args){3. byte b = 6;4. b+=8;5. System.out.println(b);6. b = b+7;7. System.out.println(b);8. }9. } 14 21 14 13 Compilation fails with an error at line 4 None of these Compilation fails with an error at line 6 14 21 14 13 Compilation fails with an error at line 4 None of these Compilation fails with an error at line 6 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