This content has been marked as final. Show 1 reply
Well, you could probably access these using reflection, assuming you have SecurityManager permissions to access declared members. However, you shouldn't. Firstly, private and package-private members are not part of the public API, so there is no guarantee that those methods and fields will still be there in a later release. Additionally, you have no guarantees that any class invariants are preserved when you access those members, so behavior of the objects is not properly defined.