hi everybody,
The following code catches the following error...
Can any one say why it is not possible to create object for an inner class..
class j{
int p=58;
class k{
int l=87;
}
public static void main(
String argsssss[]){
j obj1=new j();
k obj2=new k();
}
}
/*Output
F:\san>javac j.java
j.java:8: non-static variable this cannot be referenced from a static context
k obj2=new k();
^
1 error
*/
Thanks in advance..