Java Custom Annotations Example
How to create Java Custom Annotation. A simple example of creating Annotations in Java and usage by calling the Reflection API.
How to execute shell command from Java
How to execute a shell command from Java using Runtime.getRuntime().exec()
method.
Installation failed: Could not create directory in WordPress
When you get the "Installation failed: Could not create directory." in WordPress, you can follow these two easy steps.
Autoboxing and Unboxing in Java
In Java, autoboxing is the automatic conversion between the primitive types and their corresponding object wrapper classes. Unboxing is the other way around.
Java Exceptions handling
How to handle exceptions in Java. Checked and unchecked exceptions example using custom implementation.
How to create Generic Object Pool in Java
In a application you can have resources that are limited or time consuming to create a new one. e.g. a connection to a database, a new thread. A solution is to create a the limited resource once and reuse it. To address this problem the object pool pattern was introduced. The object pool design will have the mechanism to create a new object to keep the objects and to destroy the objects if necessary.