fork download
  1. /* package whatever; // don't place package name! */
  2.  
  3. import java.util.*;
  4. import java.lang.*;
  5. import java.io.*;
  6.  
  7. /* Name of the class has to be "Main" only if the class is public. */
  8. class Ideone
  9. {
  10. public static void main (String[] args) throws java.lang.Exception
  11. {
  12. // your code goes here
  13. What is output by the code below?
  14.  
  15. int[] array = {33,14,37,11,27};
  16. System.out.println(array[7/2]);
  17. }
  18. }
Compilation error #stdin compilation error #stdout 0s 0KB
stdin
Standard input is empty
compilation info
Main.java:13: error: ';' expected
		What is output by the code below?
		       ^
Main.java:13: error: ';' expected
		What is output by the code below?
		                 ^
Main.java:13: error: ';' expected
		What is output by the code below?
		                          ^
Main.java:15: error: '.class' expected
int[] array = {33,14,37,11,27};
      ^
Main.java:15: error: illegal start of expression
int[] array = {33,14,37,11,27};
            ^
Main.java:13: error: not a statement
		What is output by the code below?
		                                ^
Main.java:15: error: ';' expected
int[] array = {33,14,37,11,27};
             ^
Main.java:15: error: not a statement
int[] array = {33,14,37,11,27};
               ^
Main.java:15: error: ';' expected
int[] array = {33,14,37,11,27};
                 ^
Main.java:16: error: <identifier> expected
System.out.println(array[7/2]);
                  ^
Main.java:16: error: ']' expected
System.out.println(array[7/2]);
                         ^
Main.java:16: error: ')' expected
System.out.println(array[7/2]);
                          ^
Main.java:16: error: ';' expected
System.out.println(array[7/2]);
                           ^
Main.java:16: error: illegal start of type
System.out.println(array[7/2]);
                            ^
Main.java:16: error: <identifier> expected
System.out.println(array[7/2]);
                             ^
Main.java:18: error: class, interface, or enum expected
}
^
16 errors
stdout
Standard output is empty