Skip to content

Category Archives: Java Programs

We can swap two elements of Array List using Collections.swap() method. This method accepts three arguments. The first argument is the ArrayList and the other… Read More
ArrayList in Java do not prevent the list from having duplicate values. But there are ways if you want to get unique values from the… Read More
Considering a string object that contains the student name and roll number separated by a comma, and each student contains the name and roll number… Read More
Serialization is the process by which we convert an object into a stream of bytes and store these bytes in file systems/databases or put them… Read More
An object is an instance of a class that has its state and behavior. In java, being object-oriented, it is always dynamically created and automatically… Read More
The clone() method of the ArrayList class is used to clone an ArrayList to another ArrayList in Java as it returns a shallow copy of… Read More
Java has its own API which JDBC API which uses JDBC drivers for database connections. JDBC API provides the applications-to-JDBC connection and JDBC driver provides… Read More
The LinkedHashMap is just like HashMap with an additional feature of maintaining an order of elements inserted into it. LinkedHashMap in Java is an implementation… Read More
JDBC (Java Database Connectivity) is basically a standard API(application interface) between the java programming language and various databases like Oracle, SQL, PostgreSQL, etc. It connects… Read More
Java supports many databases and for each database, we need to have their respective jar files to be placed in the build path to proceed… Read More
Java has its own API which JDBC API which uses JDBC drivers for database connections. JDBC API provides the applications-to-JDBC connection and JDBC driver provides… Read More
Have you ever wondered how different cells in a PDF table are set to various colors? Well, in this article we’ll be seeing how we… Read More
In this article, we will learn how to add watermarks to the images in a PDF document using Java. Adding watermarks to the images in… Read More
A constructor in Java is a special method that is used to initialize an object. Whenever an object is created using the new() keyword at… Read More
A constructor in Java is a special method that is used to initialize an object. Whenever an object is created using the new keyword at… Read More

Start Your Coding Journey Now!