What is static?
Are you preparing for IT certification? With practice questions, study notes, interactive quizzes, tips and technical articles, uCertify PrepKits ensure that you get a solid grasp of core technical concepts to ace your certification exam in first attempt.
What is static?
Rating:
In Java, a class member, i.e. a class variable or a class method, is normally accessed by every object of its class. However, a class member declared as static can be accessed before any object of its class is created.
The most common example of a static class member is the main() method, which is the starting point for the execution of a Java program.
The syntax for declaring a class member as static is given below:
Rating:
Was this information helpful?
Other articles
- What are the values() and valueOf() methods?
- What is ebXML?
- What is the indexOf() method of the String class?
- What is a constructor?
- What is the setTransactionIsolation() method?