Announcement

Collapse
No announcement yet.

What is static variable in Java?

Collapse
X
 
  • Filter
  • Time
  • Show
Clear All
new posts

  • What is static variable in Java?

    The static keyword in java is mainly used for memory management. We can use Java static keyword with variables, methods, blocks and nested classes. The static keyword belongs to the class as an instance of the class.

    The static can be:

    variable (also known as class variable)
    Method (also known as class method)
    Block
    nested class

    https://www.exltech.in/java-training.html
Working...
X