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 – Check if a particular value exists in HashMap example

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

In this example we are checking whether a particular value exists in HashMap or not. We will be using containsValue() method of HashMap class to… [Read More]

Tags: Collections, Java-HashMap

Java – Get size of HashMap example

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

In this example we are gonna see how to get the size of HashMap using size() method of HashMap class. Method definition and description are… [Read More]

Tags: Collections, Java-HashMap

Java – HashMap Iterator example

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

Example In the previous tutorial we have seen different-2 ways to iterate a HashMap. In this example we are gonna see how to iterate a… [Read More]

Tags: Collections, Java-HashMap

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

Java – Get element from specific index of LinkedList example

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

In this example we are gonna see how to get an element from specific index of LinkedList using get(int index) method: public E get(int index):… [Read More]

Tags: Collections, Java-LinkedList

Java – Check if a particular element exists in LinkedList example

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

In this example we are gonna see how to check if a particular element exists in LinkedList using contains() method: public boolean contains(Object o): Returns… [Read More]

Tags: Collections, Java-LinkedList

Java – Add elements at beginning and end of LinkedList example

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

Example In this example we will learn how to add elements at the beginning and end of a LinkedList. We will be using addFirst() and… [Read More]

Tags: Collections, Java-LinkedList

How to convert LinkedList to array using toArray() in Java

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

Converting LinkedList to array is very easy. You can convert a LinkedList of any type (such as double, String, int etc) to an array of… [Read More]

Tags: Collections, Java-Array, Java-LinkedList

Java – Convert a LinkedList to ArrayList

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

Example In this example we are converting a LinkedList to ArrayList. We have a LinkedList of Strings in which we are storing names of 5… [Read More]

Tags: Collections, Java-ArrayList, Java-LinkedList

  • « Previous Page
  • 1
  • …
  • 5
  • 6
  • 7
  • 8
  • 9
  • …
  • 16
  • Next Page »

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