Java Custom Annotations Example

  • 26 July 2018
  • ADM

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

  • 20 June 2018
  • ADM

How to execute a shell command from Java using Runtime.getRuntime().exec() method.


Installation failed: Could not create directory in WordPress

  • 15 June 2017
  • ADM

When you get the "Installation failed: Could not create directory." in WordPress, you can follow these two easy steps.


Autoboxing and Unboxing in Java

  • 12 October 2016
  • ADM

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

  • 16 June 2016
  • ADM

How to handle exceptions in Java. Checked and unchecked exceptions example using custom implementation.


How to create Generic Object Pool in Java

  • 23 March 2016
  • ADM

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.