Basic about JDBC

JDBC stands for Java Database Connectivity, which is an API that allows us to build applications that can access and manipulate with many different types of databases. In this tutorial, I will talk to you about the basic knowledge of JDBC. First, I will create… Read More

Move file in Java

To migrate any file in Java, in Java 6 or older Java versions, we can use the renameTo() method located in the File object to do this:

Result:

From Java 7 onwards, we have another way to move a file, which is to… Read More

Copy file in Java

In this tutorial, we will cover how to copy any file in Java. If you consider Java 6 or earlier, Java does not have an object or method that supports us copying a file, only creating or deleting a file. So if you are working… Read More

Delete file in Java

Even though creating a file in Java is easy, deleting a file is easier. In this tutorial, I will guide you how to delete a file in Java. The File object, which is the main file management object since Java version 6 and earlier, cannot be… Read More