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
37.4K+ articles
DSA
22.8K+ articles
Java
10.8K+ articles
Misc
8.8K+ articles
Mathematical
7.8K+ articles
Arrays
6.5K+ articles
Strings
3.3K+ articles
Amazon
1.8K+ articles
Linked List
1.2K+ articles
rotation
415+ articles
Java Programs
2.0K+ posts
Recent Articles
Popular Articles
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
String to Integer in Different Programming Languages
Last Updated: 24 August 2024
Below are example programs to do string to integer conversion in different programming languages.C++#include bits/stdc++.husing namespace std;int main(){ int val; ch...
read more
Strings
Python
C Programs
C++ Programs
Java Programs
C++
Python Programs
PHP Programs
DSA
JavaScript Programs
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
DSA in JAVA
Last Updated: 20 March 2025
Data Structures and Algorithms (DSA) are critical for optimizing how data is stored, accessed, and processed, directly affecting the performance of an application. This tu...
read more
Java
Java Programs
DSA
1
2
3
4
...
131
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 !