How to create Factory Pattern in Java
How to create a factory design pattern in Java using the example of creating a database table for multiple database engines.
How to delete directory in Java
How to delete directory in Java using File.delete() method. Recursive delete is applied if the directory is not empty.
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.
Luhn algorithm implementation in Java
Luhn algorithm implementation in Java with example for both calculate the check digit and validate the number.
How to create a table using JDBC Statement
How to create a new table from Java using JDBC Statement in simple steps: connect, get the statement, execute and close.
How to create thread pool in Java
How to create a simple thread pool in Java using ExecutorService, Executors, ThreadPoolExecutor and RejectedExecutionHandler classes.