Find the output- public class Test3 { public static void main(String[] args) { int n = 15; for(;;){} while( n >= 0) { System.out.println(n--); if(n==9) break; }
ahaana16
Asked:
December 2022
What will be the output of following code snippet- int var1 = = 5; int var2 = 6; System.out.print(var1 > var2);
ahaana16
Asked:
December 2022
Find the output of the given program- public class Test3 { public static void main(String[] args) { int a=20,b=10; b=a++ + a++; if((a+b) && (b++ <25)) { System.out.println("NOKIA"); } if(a { System.out.println(a); } }
ahaana16
Asked:
December 2022
Find the output- public class Test3 { public static void main(String[] args) { int s=5; for(int i=2;i<7; i++) { if(i==3) continue; if(i==5) break; S=S+1; } System.out.println(s); }
ahaana16
Asked:
December 2022
2. Find the output class Test4 { public static void main(String[] args) { int j=50; while(true) { if(j<10) break; j=j-10; } System.out.println("j is "+j); } }
ahaana16
Asked:
December 2022
Find the output- public class Test3 { public static void main(String[] args) { int n = 15; for(;;){} while( n >= 0) { System.out.println(n--); if(n==9) break; }
ahaana16
Asked:
December 2022
How many times the following loop executes and what will be the output? public class Test3 { public static void main(String[] args) { int p=250; while(true) { if(p<100) break; p=p-20; } System.out.println(p);
ahaana16
Asked:
December 2022
Find the output of the following Java program. public class Test { public static void main(String[] args) { int p=45, q=23, r=4; q=p++ + (q++ *--r) + q++ + -q++ +p; System.out.println(p+"$"+q+" "+r--); }
ahaana16
Asked:
December 2022
Class Test. public static void main(String[] args) { String day = "Sunday"; switch (day) case "Monday": System.out.println("Let's Work"); break; case "Saturday": System.out.println("waiting for Sunday"); break; case "Sunday": System.out.println("Today is fun day"); } } waiting for Sunday Find the output
ahaana16
Asked:
December 2022
class Test { public static void main(String[] args) { do { System.out.print(1); do { System.out.print(2); } while (false); } while (false); }
ahaana16
Asked:
December 2022
Find the output of the following Java Program- class Test2 { public static void main(String args[]) { String s= "ABC"; changeValue(s); System.out.println(s); } public static void changeValue(String s) { S="XYZ" ; Find the output
ahaana16
Asked:
December 2022
The area of the square whose vertices are A(0,-2), B(3,1), C(O, 4) and D (-3, 1) is
ahaana16
Asked:
December 2022
In the adjoining figure , AC = BD. If _ CAB = 2 DBA, then 2 ACB is equal to
ahaana16
Asked:
December 2022
In the adjoining figure , AC = BD. If _ CAB = 2 DBA, then 2 ACB is equal to
ahaana16
Asked:
December 2022
In the adjoining figure , AC = BD. If angle CAB = angle DBA, then < ACB is equal to
ahaana16
Asked:
December 2022
Who were the three men who came into the visitor's room? Why had they come?