Back to Browse

What is a static keyword in Java? What is the use of static method in Java?

8 views
Nov 17, 2024
54:13

What is a static keyword in Java? What is the use of static method in Java? Why do we use static keyword in main method in Java? The static keyword is a non-access modifier used for methods and attributes. Static methods/attributes can be accessed without creating an object of a class.

Download

1 formats

Video Formats

360pmp463.0 MB

Right-click 'Download' and select 'Save Link As' if the file opens in a new tab.

What is a static keyword in Java? What is the use of static method in Java? | NatokHD