I created a class dummy and created and object like :
dummy dummy = new dummy();
The above statement is giving the error : Clone() has protected access in java.lang.Object..
Why is that... Since all classes are implicitly subclass of Object.. protected method should be accessible from dummy...
If i create a class dum2 extends dummy... and place a protected method in dummy..
then i can access dum2.protectedMethod()....
Why is that in case of dummy its not working i am unable to access the protected method of Object class which is implicitly a superclass of dummy.