/* package whatever; // don't place package name! */ import java.util.*;import java.lang.*;import java.io.*; /* Name of the class has to be "Main" only if the class is public. */public class Student{ public Student() { System.out.print("1"); super(); System.out.print("2"); }}
Standard input is empty
Main.java:8: error: class Student is public, should be declared in a file named Student.java public class Student ^ Main.java:13: error: call to super must be first statement in constructor super(); ^ 2 errors
Standard output is empty
The brand new service which powers Ideone!
Widget for compiling and running the source code in a web browser!