-
Notifications
You must be signed in to change notification settings - Fork 0
JVM Flags
-
ACC_PUBLIC: The class or member ispublic, making it accessible from any other class. -
ACC_PRIVATE: The class or member isprivate, restricting access to the defining class only. -
ACC_STATIC: The class or member isstatic, meaning it belongs to the class itself, not to an instance. -
ACC_FINAL: The class or member isfinal, meaning it cannot be subclassed or overridden.
-
ACC_SYNCHRONIZED: The method issynchronized, meaning it can only be executed by one thread at a time. -
ACC_NATIVE: The method isnative, meaning its implementation is in another language, typically C or C++, and will be linked at runtime. -
ACC_PROTECTED: The class or member isprotected, making it accessible within its own package and by subclasses.
-
ACC_INTERFACE: The class is aninterface, meaning it cannot have instance methods but can contain abstract methods to be implemented by other classes. -
ACC_SUPER: The class has a superclass. Used withACC_PUBLICfor classes that inherit from a parent class. -
ACC_ABSTRACT: The class or method isabstract, meaning the class cannot be instantiated or the method must be implemented by subclasses.
Setting more than one modifier:
ACC_PUBLIC | ACC_SUPER // Public class with a super class
ACC_PRIVATE | ACC_STATIC | ACC_FINAL // Private static final field