Hi,
The members of a interface are implicitly public static and final.
if i declare a class within a interface ,is it public static and final too.
this code compiles correctly.
interface iface{
class class1{}
class class2 extends class1{}
/* shouldnt class1 be final because in an interface all the members are public ,final and static*/
}
class k{
public static void main(
String args[])
{
iface.class1 x=new iface.class1();
/*this implies that the nested class is static */
}
}
Pls reply asap.