Class initialization in Java
Class initialization means initializing all static members of the class. Class in Java is initialized when : An instance of the class is created using either …
Class Loaders in Java
Class loaders are responsible for loading Java classes during runtime dynamically to the JVM. They are part of JRE. JVM doesn’t need to know about the …
Guide to Java 8 Optional
Optional class was introduced in Java 8. The purpose of using the class is to provide a type-level solution for representing Optional values instead of null …
About generics
Arrays in Java have always been type-safe : for example, an Array declared as type String (String ) cannot accept Integers (or ints) or anything other …
About enum
As of Java 5, Java lets developers restrict a variable to having one of only a few predefined values – in other words, one value of …
Understanding Executors
Executors (and ThreadPools used by them) help meet two of the same needs that Threads do: With Executors, developer handles need 1. ThreadPools help in handling …
About ThreadFactory
java.util.concurrent.ThreadFactory itself is an interface. Its implementations are objects that create new threads on demand. Using thread factories eliminates the need of calls to new Thread. …