What is a static initializer?
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 a static initializer?
Rating:
A static initializer is a block of code, enclosed within curly brackets and labeled as static. It is not a part of a method. A class may have one or more static initializers. All the static initializers in a class are executed exactly once and in the same order in which they appear in the class. The execution of static initializers takes place at the class load time.
Rating:
Was this information helpful?
Other articles
- What is an IllegalArgumentException?
- What is a static nested class?
- Skills required for Sun test CX310-056
- What is NumberFormatException?
- What is the finally block?