i know that a protected instance method can be called from within any subclass. so i don't understand why the following code can't compile. shouldn't clone (a protected method ) of the object class be able to be called from the subclass?
public class Sub extends Object {
public static void main(
String [] args) {
Object x = new Object();
// compiler complains that clone is protected
x.clone();
}
}