Skip to content

Class Modifier

memorylorry edited this page May 13, 2018 · 2 revisions

A class Declaration may include some modifiers:

  ClassModifier:
    (one of)
    Annotaition public protected private
    abstract static final strictfp

public|protected|private

Java provides mechanism for access control, to prevent the users of a package or class from depending or unnecessary details of the implementation of that package or class. If access is permitted, then the accessed entry is said to be accessible.

Class Default Modifier

Which stages do not Pertain

Here an wrong static class case: Why is it wrong?

HOME

  1. Type, Value, Variable
  1. Class
  2. Interface
  3. Modifier
  4. Arrays
  5. Exception
  6. Threads and Locks

Clone this wiki locally