Considering following class definition.
public final class engine{
protected Object _obj=new Object();
}
My question is, as final classes are not allowed to be inherited in java, so the protected
access specifier rules like private
here.
Why doesn't java raise error for this definition while code compilation?
Is it possible to inherit from Engine
using reflection, native codes, anything?