Tutorials
Courses
Data Structure
Java
Python
HTML
Interview Preparation
DSA
Practice Problems
C
C++
Java
Python
JavaScript
Data Science
Machine Learning
Courses
Linux
DevOps
SQL
Web Development
System Design
Aptitude
GfG Premium
Similar Topics
Web Technologies
32.7K+ articles
DSA
20.1K+ articles
Java
9.3K+ articles
Misc
7.8K+ articles
Strings
2.1K+ articles
Amazon
1.8K+ articles
Sorting
1.1K+ articles
Linked List
672+ articles
Java-String-Programs
148+ articles
Java-Array-Programs
117+ articles
Java Programs
1.6K+ posts
Recent Articles
Popular Articles
How to Implement Peer-to-Peer Communication in Java?
Last Updated: 26 April 2024
Peer-to-peer communication is a decentralized form of communication where two or more devices communicate directly with each other without the need for a central server. I...
read more
Java
Java Programs
Picked
Java-Networking
Java Examples
How to Efficiently Remove Duplicates from an Array without using Set?
Last Updated: 27 April 2024
Arrays are a fundamental data structure in Java that stores data of the same type in contiguous memory locations. Removing duplicate elements from an array is a common ope...
read more
Java
Java Programs
Picked
Java-Arrays
Java-Array-Programs
Java Examples
How to Find the Maximum Element in an Array?
Last Updated: 15 November 2024
In Java, the array is a data structure that allows the users to store data of the same type in contiguous memory locations. To find the maximum element in an Array in Java...
read more
Java
Java Programs
Picked
Java-Arrays
Java-Array-Programs
Java Examples
How to Copy Elements from One PriorityQueue to Another in Java?
Last Updated: 27 April 2024
In Java, a priority queue is a data structure that allows the users to store data based on their priority. In this article, we will learn how to copy elements from one pri...
read more
Java
Java Programs
Picked
java-priority-queue
Java Examples
How to Iterate over the Elements of a PriorityQueue in Java?
Last Updated: 27 April 2024
In Java, a Priority Queue is a Data structure that allows the users to store data based on their priority so that the elements with the highest priority can be accessed in...
read more
Java
Java Programs
Picked
java-priority-queue
Java Examples
How to Connect to a Database Using JDBC with SSL/TLS?
Last Updated: 15 May 2024
Connecting to a database using JDBC with SSL/TLS is nothing but it will Setup a secure connection between the Java program(from IDE, for Example: Eclipse) and the database...
read more
Java
Java Programs
Picked
Java Examples
How to Handle Connection Pooling in JDBC in Java?
Last Updated: 15 May 2024
In Java applications, interacting with the databases using JDBC (Java Database Connectivity), and managing the database connections efficiently is crucial for optimal perf...
read more
Java
Java Programs
Picked
Java Examples
How to Secure Communication Using SSL/TLS in Java?
Last Updated: 16 May 2024
Secure Sockets Layer (SSL) or Transport Layer Security (TLS) are cryptographic protocols designed to provide secure communication over the computer network. These protocol...
read more
Java
Java Programs
Picked
Java-Networking
Java Examples
How to Convert a String to URL in Java?
Last Updated: 15 May 2024
In Java, a string is a sequence of characters. A URL, which is short for Uniform Resource Locator, refers to a web resource that specifies its location on a computer netwo...
read more
Java
Java Programs
Picked
Java-URL
Java Examples
Java Program to Search an Element in Vector
Last Updated: 21 June 2024
A vector in Java is a dynamic array that can be resized as needed. It is synchronized, which means it is safe in multi-threaded programs. To find an element in a Vector we...
read more
Java
Java Programs
Picked
Java-Vector
What is the difference between ArrayList.clear() and ArrayList.removeAll()?
Last Updated: 27 June 2024
In Java, ArrayList.clear() and ArrayList.removeAll() are the two methods that are used to remove elements from an ArrayList, but they are used for different purposes. In t...
read more
Java
Java Programs
Picked
Mutable and Immutable Objects in Java
Last Updated: 09 July 2024
Java is a popular object-oriented programming (OOP) language and it's code design revolves around it's objects and their manipulation. One of the key concepts in this OOP ...
read more
Java
Java Programs
Java-Object Oriented
Class and Object
Java-Class and Object
Java-Classes
Java 19
How to Create a Date Object using the Calendar Class in Java
Last Updated: 08 July 2024
In Java, the Calendar class can provide a flexible way to handle the dates and times. This article demonstrates how to create the Date object using the Calendar class by s...
read more
Java
Java Programs
Picked
Java-Date-Time
How to Check if an Array is Empty or Not in Java?
Last Updated: 09 December 2024
In Java, arrays do not have a built-in method like isEmpty() to check if they are empty. So, we need to use other ways to check if an array is empty in Java.Example: The s...
read more
Java
Java Programs
Java-Arrays
Java-Array-Programs
Java Program to Check if Specified Element is Present in the Array
Last Updated: 09 December 2024
In Java, to check if a specified element is present in an array, we have to iterate through the array and compare each element with the target value. This can be done usin...
read more
Java
Java Programs
Java-Arrays
Java-Array-Programs
1
2
3
4
...
104
We use cookies to ensure you have the best browsing experience on our website. By using our site, you acknowledge that you have read and understood our
Cookie Policy
&
Privacy Policy
Got It !