Okay acording to the
java object class it has the following declaration
It means its protected.
Anyways my code is
import java.io.ObjectInputStream.GetField;
and this is the error i get
I know how to use the clone method using Clonable but what i am curious about is why do we get the "Visibility" error when it says the method is protected ??