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 ›...



800+ Java Interview Q&As

Java & Big Data Tutorials

Top