Skip to content
Courses
DSA to Development
Get IBM Certification
Newly Launched!
Master Django Framework
Become AWS Certified
For Working Professionals
Interview 101: DSA & System Design
Data Science Training Program
JAVA Backend Development (Live)
DevOps Engineering (LIVE)
Data Structures & Algorithms in Python
For Students
Placement Preparation Course
Data Science (Live)
Data Structure & Algorithm-Self Paced (C++/JAVA)
Master Competitive Programming (Live)
Full Stack Development with React & Node JS (Live)
Full Stack Development
Data Science Program
All Courses
Tutorials
Data Structures & Algorithms
ML & Data Science
Interview Corner
Programming Languages
Web Development
CS Subjects
DevOps And Linux
School Learning
Practice
Build your AI Agent
GfG 160
Problem of the Day
Practice Coding Problems
GfG SDE Sheet
Contests
Accenture Hackathon (Ending Soon!)
GfG Weekly [Rated Contest]
Job-A-Thon Hiring Challenge
All Contests and Events
DSA
Practice Problems
C
C++
Java
Python
JavaScript
Data Science
Machine Learning
Courses
Linux
DevOps
SQL
Web Development
System Design
Aptitude
GfG Premium
Sign In
▲
Similar Topics
Java
10.5k+ articles
Java-Functions
4.1k+ articles
Difference Between
3.6k+ articles
Java Programs
1.9k+ articles
Java - util package
1.5k+ articles
Java-Collections
1.1k+ articles
Java-HashMap
140+ articles
java-stream
130+ articles
java-list
89 articles
Java-Map-Programs
20 articles
java-map
39 posts
Popular Articles
Recent Articles
Java Collection Exercise
Last Updated: 12 March 2024
The Java Collection framework is a fundamental part of the Java programming language, It covers a major part of Java and acts as a prerequis
...read more
Java
Java-Collections
Java Programs
Java-ArrayList
Java-HashMap
java-priority-queue
java-hashset
java-set
java-queue
java-map
Java-Collection-Programs
Difference Between keySet() and entrySet() Method in Java Map
Last Updated: 02 June 2022
Map Interface is present in Java.util package, which provides mainly three methods KeySet(),entrySet() and values(). These methods are used
...read more
Java
Technical Scripter
Java-Collections
Difference Between
java-map
Picked
Technical Scripter 2020
Map size() Method in Java With Examples
Last Updated: 02 June 2023
Map size() method in Java is used to get the total number entries i.e, key-value pair. So this method is useful when you want total entries
...read more
Java
Java-Collections
java-map
Java-Map-Programs
Similar Topics
Java
10.5k+ articles
Java-Functions
4.1k+ articles
Difference Between
3.6k+ articles
Java Programs
1.9k+ articles
Java - util package
1.5k+ articles
Java-Collections
1.1k+ articles
Java-HashMap
140+ articles
java-stream
130+ articles
java-list
89+ articles
Java-Map-Programs
20+ articles
Minimum distance between any two equal elements in an Array
Last Updated: 20 April 2023
Given an array arr, the task is to find the minimum distance between any two same elements in the array. If no such element is found, return
...read more
Arrays
cpp-map
Java-HashMap
java-map
DSA
How to find the Entry with largest Key in a Java Map
Last Updated: 19 July 2022
Given a map in Java, the task is to find out the entry in this map with the highest key. Examples:Input: Map = {ABC = 10, DEF = 30, XYZ = 20
...read more
Java
java-map
Java-Map-Programs
Initialize a static Map using Java 9 Map.of()
Last Updated: 14 July 2022
In this article, a static map is created and initialised in Java using Java 9.Static Map in JavaA static map is a map which is defined as st
...read more
Java
Static Keyword
java-map
Map putAll() Method in Java with Examples
Last Updated: 02 January 2019
This method is used to copy all of the mappings from the specified map to this map.Syntax: void putAll(Map m)Parameters: This method has th
...read more
Java
Java-Collections
Java - util package
Java-Functions
java-map
Java Map equals() Method
Last Updated: 21 January 2025
The equals() method of Map interface in Java is used to check if two maps are equal. Two maps are considered equal if they meet the followin
...read more
Java
Java-Collections
Java-HashMap
java-map
Map entrySet() method in Java with Examples
Last Updated: 20 January 2022
The java.util.Map.entrySet() method in Java is used to create a set out of the same elements contained in the map. It basically returns a se
...read more
Java
Java-Collections
Java-Functions
java-map
Map containsValue() method in Java with Examples
Last Updated: 31 December 2018
The java.util.Map.containsValue() method is used to check whether a particular value is being mapped by a single or more than one key in the
...read more
Java
Java-Collections
Java-Functions
java-map
Map containsKey() method in Java with Examples
Last Updated: 31 December 2018
The java.util.Map.containsKey() method is used to check whether a particular key is being mapped into the Map or not. It takes the key eleme
...read more
Java
Java-Collections
Java-Functions
java-map
Map clear() method in Java with Example
Last Updated: 31 December 2018
The java.util.Map.clear() method in Java is used to clear and remove all of the elements or mappings from a specified Map collection.Syntax:
...read more
Java
Java-Collections
Java-Functions
java-map
Map keySet() Method in Java with Examples
Last Updated: 27 November 2024
This method is used to return a Set view of the keys contained in this map. The set is backed by the map, so changes to the map are reflecte
...read more
Java
Java-Collections
Java - util package
Java-Functions
java-map
Java Map hashCode() Method
Last Updated: 21 January 2025
In Java, the hashCode() method is a part of the Object class and is used to generate a hash code value for an object. Example 1: Hash Code f
...read more
Java
Java-Collections
Java-HashMap
java-map
Map isEmpty() Method in Java with Examples
Last Updated: 02 January 2019
This method is used to check if a map is having any entry for key and value pairs. If no mapping exists, then this returns true.Syntax: bool
...read more
Java
Java-Collections
Java - util package
Java-Functions
java-map
First
1
2
3
>>
Last
First
1
2
3
>>
Last
First
1
2
3
>>
Last
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 !