it is happening with every program.
if you want to see my code you can see but i think it will be of no use.there must be some problem with system...i dont know...
here is the code:-
class A
{
private int a;
A(int a)
{
this.a =a;
}
void show()
{
System.out.println("a="+a);
} // End of show()
}// End of class A
public class innertest
{
public static void main(String args[])
{
A a1 = new A(20){
public void show()
{
super.show();
System.out.println("Hello");
}
public void display()
{
System.out.println("Hi");
}
};
a1.show();
// a1.display();
}
}
Mohammed was on about classpaths, but you need to realise that setting a system classpath can cause more harm than good. If you don’t already have a system classpath, leave well alone.