HDTutorial
EN

Playback starts YouTube’s embedded player (privacy-enhanced mode).

ArrayList in java - in depth analysis | java collections tutorial for beginners | part 1

84,894 views November 11, 2018 46:02

Watch on YouTube
ChannelSelenium Express

Description from the creator

In this video let’s have a deep dive to ArrayList in java. As ArrayList is one of the most used classes when it comes to collection framework, we should have some basic understanding about it. These are some key points we are going to discuss.

1. What is ArrayList?
2.arraylist implementation in java
3.arraylist rules and characteristics
4.when to use arraylist?

In part 2 of this tutorial we are going to see everything in detail and in action as we are going to do the practice of it but before that, it’s time to learn the concept.

These are the few points that you always need to remember about ArrayList.


1.The internal data structure that arraylist use is Growable array/Dynamic array / Resizable array.
2. In arraylist, heterogeneous elements are allowed.
3. In arraylist, we can insert a null value.
4. Like all the list implemented classes arraylist allows duplicates
5. Arraylist ensures like all list implemented classes that the insertion order will be preserved.
6. When we create an arraylist by using a default constructor the internal array been created is 10 in size which is called the default capacity.
7. In the entire collection framework, only two classes implements RandomAcess interface (which is a marker interface). They are ArrayList and Vector.
8.ArrayList and Vectors are used most for retrieval operation as they implements the RandomAcess interface which ensures the same fetching time irrespective of the index.
9.ArrayList is not a good choice for inserting the elements in the middle of the list or deleting either as internally shift operation is happening.
10.ArrayList is the implementation class of List interface and it came java 1.2 version.


This video’s also give you some fundamental of the below ArrayList methods
add(E e), add(int index, E element), get(int index), remove(int index)


So as I am looking forward to having a "java collection tutorial in depth" series few of the things I haven’t covered in this video and I will be covering them all in the next one.
eg. ArrayList java 7 updates
Making ArrayList object type safe(using generics)
sorting ArrayList

------------------

for more java collection videos and java collection framework, tutorial subscribe to this channel by clicking the link below

youtube.com/channel/UCpUYkSDJpHug-vfC5S-NXRA?su…

Don’t forget to check out a few of my other tutorials :

Java interview question on hashcode() and equals() || Java collection interview questions on HASHMAP

youtu.be/Nr56SlbMed4

Why String is immutable in Java ? || The four reason you must know

youtube.com/playlist?list=PL3NrzZBjk6m_-kS_ZNB9…


Hashmap Internal working

youtube.com/playlist?list=PL3NrzZBjk6m9do1opOKw…

Why we need constructor inside an abstract class ? || Popular Java interview question

youtu.be/jmxOsCGV120


Stay tuned and like my Facebook page for more.

facebook.com/seleniumexpress/


Music :
-----------
credits : -
(intro)
Adventures by A Himitsu soundcloud.com/a-himitsu
Creative Commons — Attribution 3.0 Unported— CC BY 3.0
creativecommons.org/licenses/b...
Music released by Argofox youtu.be/8BXNwnxaVQE
Music provided by Audio Library youtu.be/MkNeIUgNPQ8

About this tutorial

Selenium Express published this 46:02 video tutorial on November 11, 2018. It has been watched 84,894 times on YouTube.

Category
Education
Duration
46:02
Published
November 11, 2018
Views
84,894
Likes
2,171

Tags

Share

This tutorial in other languages