Category: JavaSE

JavaSERelevant topics

Class initialization in Java

by:

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 …

JavaSERelevant topics

Class Loaders in Java

by:

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 …

JavaSERelevant topics

Guide to Java 8 Optional

by:

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 …

JavaSERelevant topics

About generics

by:

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 …

JavaSERelevant topics

About enum

by:

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 …

ConcurrencyJavaSERelevant topics

Understanding Executors

by:

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 …

ConcurrencyJavaSERelevant topics

About ThreadFactory

by:

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