BeginnersBook

  • Home
  • Java
    • Java OOPs
    • Java Collections
    • Java Examples
  • C
    • C Examples
  • C++
    • C++ Examples
  • DBMS
  • Computer Network
  • Python
    • Python Examples
  • More…
    • jQuery
    • Kotlin
    • WordPress
    • SEO
    • JSON
    • JSP
    • JSTL
    • Servlet
    • MongoDB
    • XML
    • Perl

Java – Remove all mappings from HashMap example

Last Updated: September 11, 2022 by Chaitanya Singh | Filed Under: java

Example In the last tutorial we shared how to remove a specific mapping from HashMap based on key. In this example we are going to… [Read More]

Tags: Collections, Java-HashMap

Java – Remove mapping from HashMap example

Last Updated: September 11, 2022 by Chaitanya Singh | Filed Under: java

Example In this example we are gonna see how to remove a specific mapping from HashMap using the key value of Key-value pair. We will… [Read More]

Tags: Collections, Java-HashMap

Difference between HashMap and Hashtable

Last Updated: September 11, 2022 by Chaitanya Singh | Filed Under: java

What is the Difference between HashMap and Hashtable? This is one of the frequently asked interview questions for Java/J2EE professionals. HashMap and Hashtable both classes implements java.util.Map interface, however there are… [Read More]

Tags: Collections, Java-HashMap, Java-HashTable

How to loop HashMap in java

Last Updated: September 11, 2022 by Chaitanya Singh | Filed Under: java

In this tutorial we will learn how to loop HashMap using following methods: For loop While loop + Iterator Example: In the below example we… [Read More]

Tags: Collections, Java-HashMap

How to serialize HashMap in java

Last Updated: September 11, 2022 by Chaitanya Singh | Filed Under: java

HashMap class is serialized by default which means we need not to implement Serializable interface in order to make it eligible for Serialization. In this… [Read More]

Tags: Collections, Java-HashMap

How to sort HashMap in Java by Keys and Values

Last Updated: September 11, 2022 by Chaitanya Singh | Filed Under: java

As we know that HashMap doesn’t preserve any order by default. If there is a need we need to sort it explicitly based on the… [Read More]

Tags: Collections, Java-HashMap

How to synchronize HashMap in Java with example

Last Updated: September 11, 2022 by Chaitanya Singh | Filed Under: java

HashMap is a non-synchronized collection class. If we need to perform thread-safe operations on it then we must need to synchronize it explicitly. In this… [Read More]

Tags: Collections, Java-HashMap

Difference between ArrayList and HashMap in Java

Last Updated: September 11, 2022 by Chaitanya Singh | Filed Under: java

ArrayList and HashMap are two commonly used collection classes in Java. Even though both are the part of collection framework, the way they store and… [Read More]

Tags: Collections, Java-ArrayList, Java-HashMap

HashMap in Java With Examples

Last Updated: September 19, 2022 by Chaitanya Singh | Filed Under: java

HashMap is a Map based collection class that is used for storing Key & value pairs, it is denoted as HashMap<Key, Value> or HashMap<K, V>…. [Read More]

Tags: Collections, Java-HashMap

  • « Previous Page
  • 1
  • 2

Java Tutorial

Java Introduction

  • Java Index
  • Java Introduction
  • History of Java
  • Features of Java
  • C++ vs Java
  • JDK vs JRE vs JVM
  • JVM - Java Virtual Machine
  • First Java Program
  • Variables
  • Data Types
  • Operators

Java Flow Control

  • Java If-else
  • Java Switch-Case
  • Java For loop
  • Java while loop
  • Java do-while loop
  • Continue statement
  • break statement

Java Arrays

  • Java Arrays

OOPs Concepts

  • OOPs Concepts
  • Constructor
  • Java String
  • Static keyword
  • Inheritance
  • Types of inheritance
  • Aggregation
  • Association
  • Super Keyword
  • Method overloading
  • Method overriding
  • Overloading vs Overriding
  • Polymorphism
  • Types of polymorphism
  • Static and dynamic binding
  • Abstract class and methods
  • Interface
  • Abstract class vs interface
  • Encapsulation
  • Packages
  • Access modifiers
  • Garbage Collection
  • Inner classes
  • Static import
  • Static constructor

Java Exception Handling

  • Exception handling
  • Java try-catch
  • Java throw
  • Java throws
  • Checked and Unchecked Exceptions
  • Jav try catch finally
  • Exception Examples
  • Exception Propagation

Collections Framework

  • Collections in Java
  • Java ArrayList
  • Java LinkedList
  • Java Vector
  • Java HashSet
  • Java LinkedHashSet
  • Java TreeSet
  • Java HashMap
  • Java TreeMap
  • Java LinkedHashMap
  • Java Queue
  • Java PriorityQueue
  • Java Deque
  • Comparable interface
  • Comparator interface
  • Collections Interview Questions

MORE ...

  • Java Scanner Class
  • Java 8 Features
  • Java 9 Features
  • Java Conversion
  • Java Date
  • Java Multithreading
  • Java I/O
  • Java Serialization
  • Java Regex
  • Java AWT
  • Java Swing
  • Java Enum
  • Java Annotations
  • Java main method
  • Java Interview Q

Copyright © 2012 – 2026 BeginnersBook . Privacy Policy . Sitemap