Static Variable

Use case

  • Rarely used other than being declared as constants (final)
  • most static variables are declared public since they must be available for users of the class.

Declaration

Class variables/static variables declared in a class but outside any method, constructor or block.

Serialization

Static Variable can't be serialized


Children
  1. Static Variable can't be serialized

Backlinks