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

Create file in Java

Creating files in Java is a basic operation, everyone must know. So, in this tutorial, I just synthesized the ways that we can create a file in Java. Maybe it is useful for beginners of Java programming. First, I have to mention the File object.… Read More

BeanFactory and ApplicationContext in Spring

In my tutorials about the Spring framework, I often use the object of the ApplicationContext interface as a Spring container to call the object that I need to retrieve. For example, in the previous tutorial:

But in fact, Spring also provides us with another… Read More