Java Programming Tutorials

Java programming tutorials with many code examples!

Static Factory Method pattern

Static Factory Method is very popular pattern that simplify and clarify creation of objects. Can be used instead of or in addition to constructors.

Read More

Share with the World!

Java Singleton – enum implementation

Java Singleton – enum implementation

Singleton as enum is very simple to implement and very safe at the same time thanks to language guarantees for enum instantiation and serialization.

Read More

Share with the World!