Data Types and Variables Determine output:public class Test{ int a = 10; public void method(int a){ a += 1; System.out.println(++a); } public static void main(String args[]){ Test t = new Test(); t.method(3); }} 4 None of these 12 5 11 4 None of these 12 5 11 ANSWER DOWNLOAD EXAMIANS APP
Data Types and Variables Size of int in Java is 32 bit 64 bit 16 bit Depends on execution environment 32 bit 64 bit 16 bit Depends on execution environment 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 None of these -127 Compiler error 129 2 None of these -127 Compiler error 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. int i = 010;4. int j = 07;5. System.out.println(i);6. System.out.println(j);7. }8. } 10 7 None of these Compilation fails with an error at line 5 Compilation fails with an error at line 3 8 7 10 7 None of these Compilation fails with an error at line 5 Compilation fails with an error at line 3 8 7 ANSWER DOWNLOAD EXAMIANS APP
Data Types and Variables How many primitive data types are there in Java? 6 9 7 8 6 9 7 8 ANSWER DOWNLOAD EXAMIANS APP
Data Types and Variables Java is a ........... language. weakly typed None of these moderate typed strongly typed weakly typed None of these moderate typed strongly typed ANSWER DOWNLOAD EXAMIANS APP