Data Types and Variables Which of the following automatic type conversion will be possible? long to int byte to int short to int int to long long to int byte to int short to int int to long 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 34 65 65 34 34 34 65 65 34 65 65 34 34 34 ANSWER DOWNLOAD EXAMIANS APP
Data Types and Variables Java is a ........... language. None of these strongly typed weakly typed moderate typed None of these strongly typed weakly typed moderate typed ANSWER DOWNLOAD EXAMIANS APP
Data Types and Variables What will be output of the following program code?public class Test{public static void main(String[] a){short x = 10;x = x*5;System.out.print(x);} } None of these 50 Compilation Error 10 None of these 50 Compilation Error 10 ANSWER DOWNLOAD EXAMIANS APP
Data Types and Variables Size of float and double in Java is 64 and 64 32 and 32 64 and 32 32 and 64 64 and 64 32 and 32 64 and 32 32 and 64 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(); }} Compile error - static variable must be initialized before use. None of these 0 true 0 0 0 0 0 false 0 Compile error - static variable must be initialized before use. None of these 0 true 0 0 0 0 0 false 0 ANSWER DOWNLOAD EXAMIANS APP