In Java, which of the following is the most restrictive access specifier that allows sub classes in any package to access the members of a super class?
2.
In Java, prototype of the default constructor is _______________________________.
3.
The following Java code does not compile successfully because __________________________________________________.
class cube {
int w;
int h;
int l;
}
class example {
public static void main(String args[]) {
cube ob = new cube();
System.out.println(ob);
}
}