class Sup{
public Sup(
String str){
System.out.println("Super class");
}
}
public class Test2 extends Sup{
public Test2(){
System.out.println("Sub class");
}
public static void main(String[] args) {
Test2 t2 = new Test2();
}
}
When i am trying to compile the above of code ii am facing the following
java.lang.NoSuchMethodError: main
Exception in
thread "main"
Can any one please identify the error and provide the solution.