R

Ram Sharma • 193.86K Points
Coach

Q. A CONTINUE statement inside a Loop like WHILE, FOR, DO-WHILE and Enhanced-FOR causes the program execution ___ the loop.

  • (A) Skip
  • (B) Skip present iteration and continue with next iteration of the loop
  • (C) Exit
  • (D) None
  • Correct Answer - Option(B)
  • Views: 161
  • Filed under category JAVA

No solution found for this question.
Add Solution and get +2 points.

You must be Logged in to update hint/solution

Discusssion

Login to discuss.

Be the first to start discuss.

Related MCQs on JAVA

Q. Which keyword is used by the method to refer to the object that invoked it?

Q. What is used to execute parameterized query?

Q. Which of the following has the highest memory requirement?

Q. State true or false (i) public can only be assigned to class (ii) protected protects a statement (iii) protected method is never accessible outside the package (iv) friendly variable may be accessible outside class

Q. Which of these helps insert elements at a specific position in a collection?

Q. What will be the output of the following Java program? class equality { int x; int y; boolean isequal() { return(x == y); } } class Output { public static void main(String args[]) { equality obj = new equality(); obj.x = 5; obj.y = 5; System.out.println(obj.isequal()); } }

Q. What are regexes in Java?

Q. Which of these exceptions handles the situations when an illegal argument is used to invoke a method?

Q. What will be the output of the following Java code? class exception_handling { public static void main(String args[]) { try { int a = args.length; int b = 10 / a; System.out.print(a); try { if (a == 1) a = a / a - a; if (a == 2) { int c = {1}; c[8] = 9; } } catch (ArrayIndexOutOfBoundException e) { System.out.println("TypeA"); } catch (ArithmeticException e) { System.out.println("TypeB"); } } } } Note : Execution command line : $ java exception_handling one

Q. What will be the output of the following Java program? class recursion { int fact(int n) { int result; if (n == 1) return 1; result = fact(n - 1) * n; return result; } } class Output { public static void main(String args[]) { recursion obj = new recursion() ; System.out.print(obj.fact(1)); } }

Learn All JAVA MCQs


Question analytics