Designeasy0-2 years
Explain the access modifiers, and why package-private is a design tool.
private: the class. Package-private (no modifier): the package. protected: the package plus subclasses anywhere. public: everyone. Every public is a promise; the narrowest access that compiles is the right one.
PreviousHow are overloading and overriding resolved differently?Next Why is a Java service slower in its first minute after a deploy, and what do you do about it?