How do access modifiers internally work in JVM?

The Java Virtual Machine Specification covers this in detail. In particular section 2.7.4 Qualified Names and Access Control states.

The Java Virtual Machine Specification covers this in detail. In particular, section 2.7.4 Qualified Names and Access Control states: A field, method, or constructor of a class may be declared using at most one of the public, private, or protected keywords. A public member may be accessed by any class or interface.

A private member may be accessed only from within the class that contains its declaration. A member that is not declared public, protected, or private is said to have default access and may be accessed from, and only from, anywhere in the package in which it is declared.

I cant really gove you an answer,but what I can give you is a way to a solution, that is you have to find the anglde that you relate to or peaks your interest. A good paper is one that people get drawn into because it reaches them ln some way.As for me WW11 to me, I think of the holocaust and the effect it had on the survivors, their families and those who stood by and did nothing until it was too late.

Related Questions