Course Content

  • 1. static_keyword

Course Content


The keyword static in the Java programming language denotes that a certain member belongs to a type rather than an instance of that type. This indicates that only one instance of that static member will be created, and it will be shared by all instances of the class.

This is how you call a function without having a class instance. The main reason is that it is frequently used to represent a service class that should not be instantiated repeatedly. Many OOP capabilities, such as inheritance and interface implementation, are not available when using a static class (with only static functions).

Compile-time or early binding is used in the static technique. As a result, we may call the static method without having to create an object. The approach uses runtime or dynamic binding in a non-static method. As a result, we can't use a non-static method without first creating an instance of it.

Recommended Courses

Share With Friend

Have a friend to whom you would want to share this course?

Download LearnVern App

App Preview Image
App QR Code Image
Code Scan or Download the app
Google Play Store
Apple App Store
598K+ Downloads
App Download Section Circle 1
4.57 Avg. Ratings
App Download Section Circle 2
15K+ Reviews
App Download Section Circle 3
  • Learn anywhere on the go
  • Get regular updates about your enrolled or new courses
  • Share content with your friends
  • Evaluate your progress through practice tests
  • No internet connection needed
  • Enroll for the webinar and join at the time of the webinar from anywhere