Multiple choice

What is the output of the given program code?

public class ScopeTest

{

public static void main (String [] args)

{

String[] table = {aa, bb, cc};

int ii =0;

do while (ii < table.length);

System.out.println(ii++);

while (ii < table.length);

}

}

  1. 012

  2. 01

  3. 0123

  4. Run time error

  5. Compilation error

Reveal answer Fill a bubble to check yourself
E Correct answer
Explanation

This is correct. There is an error in the program.