Blog Archives

Java initializers, constructors, regular methods and static factory methods – when to use them with examples.

Q1. What are “static initializers” or “static blocks with no function names” in Java? A1. When a class is loaded, all blocks that are declared static and don’t have function name (i.e. static initializers) are executed even before the constructors are executed. … Read more ›...

Members Only Content
Log In Register Home


800+ Java Interview Q&As Menu

Top