What does the `static` keyword mean when applied to a method?

Java Associate Medium

Java Associate — Medium

What does the `static` keyword mean when applied to a method?

Key points

  • Static methods can be accessed using the class name directly
  • They are not tied to a specific object's state
  • Static methods cannot access non-static variables directly

Ready to go further?

Related questions