Copy file using SSH

SSH is a tool for us to log on to another machine from our computer. This tutorial will guide you how to copy any file from one computer to another using SSH. To copy a file from your computer to another machine, use the following… Read More

Change password for MySQL user

To change the password of any MySQL user, please login to MySQL with the user have right permission to change the data in the database. Here, I will use the root account:

Enter and then enter the password. By default, all user information is… Read More

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