class Just
{
int a = 10 ;
Just ( )
{
call ( ) ;
}
void call ( )
{
System . out . print( "a = " + a + " ") ;
}
}
class Q05 extends Just
{
int b = 16 ;
Q05 ( )
{
call ( ) ;
}
void call ( )
{
System.out.print( " b = " + b + " " ) ;
}
public static void main (
String args [ ] )
{
new Q05 ( ) ;
}
}
when i run this code i got the output as
----------
Java ----------
java.lang.NoSuchMethodError: main
Exception in
thread "main" Normal Termination
Output completed (0 sec consumed).
-------------------------------------------
So what is the problem and also what i need to do avoid such problems.