Data Types and Variables Size of int in Java is Depends on execution environment 32 bit 16 bit 64 bit Depends on execution environment 32 bit 16 bit 64 bit 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 Compiler error -127 2 None of these 129 Compiler error -127 2 None of these ANSWER DOWNLOAD EXAMIANS APP
Data Types and Variables What is the output for the below code ?class A{ int k; boolean istrue; static int p; public void printValue(){ System.out.print(k); System.out.print(istrue); System.out.print(p); }}public class Test{ public static void main(String argv[]){ A a = new A(); a.printValue(); }} None of these 0 true 0 0 false 0 0 0 0 Compile error - static variable must be initialized before use. None of these 0 true 0 0 false 0 0 0 0 Compile error - static variable must be initialized before use. ANSWER DOWNLOAD EXAMIANS APP
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); }} 5 4 12 None of these 11 5 4 12 None of these 11 ANSWER DOWNLOAD EXAMIANS APP
Data Types and Variables Automatic type conversion in Java takes place when Two type are compatible and size of destination type is larger than source type. Two type are compatible and size of destination type is shorter than source type. All of these Two type are compatible and size of destination type is equal of source type. Two type are compatible and size of destination type is larger than source type. Two type are compatible and size of destination type is shorter than source type. All of these Two type are compatible and size of destination type is equal of source type. ANSWER DOWNLOAD EXAMIANS APP
Data Types and Variables The smallest integer type is ......... and its size is ......... bits. short, 8 short, 16 short, 16 byte, 8 short, 8 short, 16 short, 16 byte, 8 ANSWER DOWNLOAD EXAMIANS APP