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

Add Multiple Items to an ArrayList in Java

Last Updated: December 1, 2024 by Chaitanya Singh | Filed Under: java

In this tutorial, you will learn how to add multiple items to an ArrayList in Java. 1. Add multiple items using adAll() method The addAll()… [Read More]

Tags: Collections, Java-ArrayList

Difference between Array and ArrayList

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

In this guide, we will discuss the difference between Array and ArrayList. What is an Array? An array is a collection of elements of similar… [Read More]

Tags: Collections, Java-Array, Java-ArrayList

Difference between length of Array and size of ArrayList in Java

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

In this tutorial, you will learn the difference between length of Array and size of ArrayList in Java.. Length of Array: // creating an array… [Read More]

Tags: Collections, Java-Array, Java-ArrayList

How to make an ArrayList read only in Java

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

A read only ArrayList means that no modification operations is allowed to be performed on ArrayList. This list cannot be modified by adding, removing or… [Read More]

Tags: Collections, Java-ArrayList

Deque Interface in Java Collections

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

Deque is a Queue in which you can add and remove elements from both sides. In the Java Queue tutorial we have seen that the… [Read More]

Tags: Collections

PriorityQueue Interface in Java Collections

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

In the last tutorial, we have seen how a Queue serves the requests based on FIFO(First in First out). Now the question is: What if… [Read More]

Tags: Collections

Queue Interface in Java Collections

Last Updated: November 8, 2022 by Chaitanya Singh | Filed Under: java

A Queue is designed in such a way so that the elements added to it are placed at the end of Queue and removed from… [Read More]

Tags: Collections

Comparator Interface in Java

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

In the last tutorial, we have seen how to sort objects of a custom class using Comparable interface. By using Comparable we can sort the… [Read More]

Tags: Collections

Comparable Interface in Java with example

Last Updated: May 26, 2024 by Chaitanya Singh | Filed Under: java

Comparable interface is mainly used to sort the arrays (or lists) of custom objects. Lists (and arrays) of objects that implement Comparable interface can be… [Read More]

Tags: Collections

Java – How to Sort a HashSet?

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

As we know HashSet doesn’t sort elements, in fact it displays them in random order. While dealing with HashSet we may come across a situation… [Read More]

Tags: Collections, Java-HashSet

  • « Previous Page
  • 1
  • 2
  • 3
  • 4
  • …
  • 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