ArrayList In Java + Notes | Java Placement Course
HTML-код
- Опубликовано: 7 фев 2025
- Operations on ArrayList - 06:40
Notes : docs.google.co...
🔥Java Placement Course : • Introduction to Java L...
🔥Complete C++ Placement Course (Data Structures+Algorithm) : • C++ Full Course | C++...
🔥Telegram: t.me/apnikaksh...
🔥Instagram: / dhattarwalaman
My RUclips Gear 😉: docs.google.co...
Notes of this Lecture:
Always use explicit imports; generally considered good practice in Java programming. Explicit imports make your code more readable and maintainable by clearly indicating which classes are being used from external packages. Explicit imports also help to avoid potential conflicts or ambiguities that can arise when multiple classes with the same name exist in different packages. By specifying the exact classes you need, you make it easier for other developers to understand your code and for the compiler to resolve dependencies correctly.
Bro did you write it yourself or copy paste
Mca kr li mgr Java mai aaj tk kisi ne ye sb nahi bataya 😭😭😭
Thankyou so much ❤️❤️
I like that music in start😅🔥🔥🔥
Name?
Time-stamp ??
@@Shraddhaz_Guitar_Vibes Clap like background music
13:00 I would like to add one thing. There is a concept of enhanced for loops in Java to iterate over the arrays or collections. The code example is as follows,
`
ArrayList names = new ArrayList();
names.add("Alice");
names.add("Bob");
names.add("Charlie");
for (String name : names) {
System.out.println(name);
}
`
here we don't to give a explicit iterator.
Enhanced For Loop
We can also use Sout(Arrays.toString(names));
It was helpful thank you
Thank you so much Shraddha Didi you saved me from getting depressed!!
Hi, miss your content and teaching style is fabulous. Thank you for providing us with such an amazing content and OfCourse the very special notes. just one suggestion please also include time and space complexity with every DSA its very importent.
Kaash mujhe starting se aisi hi teacher mili hoti toh mai top karta har baar
I guess after your explanation most of us won't even need notes. It was to the point. ❤️❤️
your right
Absolutely right 😍❤️
Mam you have made the topic too easy for us to understand. Thank you mam
Di your teaching skills is awesome, you r one of my favourit youtuber.
I love the energizing background music at start...
Your voice and your teaching is wonderful mam ❤️
the way you explain the things is awesome
got to learn alot from u nd ur team ....love u team amn
Microsoft wali didi 😍😍😍😍 best Java teacher.
Thank you Shraddha didi.....God bless u...u r a great teacher.
I Liked the whole lec shraddha di❤thank you so much for such Content.
you explained everything very well, literally i was very confused in DSA, like when should we use function or implement sorting from scratch. you are explaining each and every thing. I really love your course. Please release more videos faster. I'm already in 6th sem. and my concepts are not much clear.
this course is clearing my all doubts.
thank you
🌻
@kumkumsharma8575
How much time it took you to complete DSA?
@@andyjohnson2046 it's depends on the depth u go
At 3 : 21 min - as you mentioned ArrayList is non -contiguous.?? but
ArrayLists use contiguous memory. All elements in the ArrayList are located next to each other in the same memory space. This is why retrieving an element from an ArrayList is so fast.
@avinash u are right. I was also wondering how sharadha ji is saying that it is non-contiguous. ArrayList is continous in memory and gets automatically doubled in size once it becomes full and one new element comes.
This part sounded wrong @apna college please give clarity on this?
Awesome tutoring style.. Really good shraddha
I think this entire playlist help full for the people those who want to good at DSA❤❤
you are so Kind, I think you looks like Punjabi? Isn't it? Though have to say this, You were Rocking, Utub has lot of platforms,channels to learn new things,but You hven done Great job, More informative,developing, thank you & team,🥰
Wow!
The way you teach is just amazing ❤
Doing good job,so thank you so much and please keep update the notes in desc bcoz you know like in other channels it's bit difficult to access notes but here it was easy.So bcoz of this notes again big thanks 👍🏻
As always .. very easy to understand .. Thankyou so much for this video
Thank you so much for informative session 😊
Thank you sister ,you're good teacher
Mam is best 💯 thank....
Thanks mam for continuing java class for us 🙏
Thanks for such a valuable and easy to understand teaching
super best the way you teach
The elements of an ArrayList are stored in a chunk of contiguous memory. When that memory becomes full, a larger chunk of contiguous memory has to be allocated (usually twice the size) and the existing elements are copied into this new chunk. We call this chunk the capacity of the ArrayList object.
(👋You said non continuous)
Correct me if I am wrong
You're right. It's similar to vector in cpp
I think there are two ways to create ArrayList through Linked List and through Arrays. Not Sure
@@Chachavimdhayak1 in CPP it's continuous. in Java it's not
@@avijitdey992 no arraylist support contiguous memory allocation
Yes, arraylist is just like c++ vector, she represented it as a doubly linkedlist which is totally wrong
Hiii.. I have no coding background.... I have learnt java by seeing this videos. Thank you.
Which clg
Andaaz apna apna 😂❤️
Thank you so much mam i have understand very Vell in this concept
I think you explain well but there is a lack on concepts which I see. When we are teaching, we need to be much responsible and very clear on our concepts. I went through the video to understand the internal working on ArrayList then I went back to the open code of Java and checked the implementation. Arraylist internally uses ARRAY which is 100% continuous. However here instead of the values as primitives, each index stores the reference to an object in the memory. Thus, we call it stores the data in non-continuous way. But array in itself is continuous in Arraylsit too. Secondly, the YES we need to copy all the elements when an Arraylist goes beyond size and hence it is costly. Only thing which is better here is instead of copying the values we copy the references to the new Array. Thus, the previous objects stay in memory and need not be moved but the older array has to be copied to the newer one and older array becomes eligible for garbage collection.
Not to demoralise; you are doing great, but please study and prepare the things thoroughly when you post it as a lecture as it may give incomplete/incorrect concepts to the viewers.
Thanks for the video though. All the best!
Thanks for the information!
For arrays int[ ] double[ ] string[]-- .length
For string related object --.length()
For classical object arrayList,set-- .size()
mam aap ke padhane ke bad koi doute hi nahi aata hai allah aap ko lambi umer ata kre
I will watch this when I qualify in JEE
Waiting for 1 M ❤️
Nice bgm, Increases the interest to peak
thank u so umuch . your teaching is amazing
As always....rocking and easy to understand..👍🤩👍
Jeeti Raho Shradaha. Your nailed it. Respect and Love from Dushman Desh. ;)
Plz make a video on,
what and how we use java programming language
Which course is better in java like core java, OOPS, etc...
Such a wonderful video I loved learning AL
Too good, explained the concepts very well
No lag clear cut explanation without much theory
An `ArrayList` stores its elements in a contiguous block of memory. This means that the elements are stored in a continuous manner, similar to how arrays work. The underlying data structure of an `ArrayList` is an array, and as elements are added to the `ArrayList`, they are stored in sequential memory locations within this array.
When the internal array of an `ArrayList` becomes full and more elements need to be added, a new, larger array is created, and the existing elements are copied to this new array. This ensures that the elements always remain in a contiguous block of memory.
🥳 Good to learn it 🙇
It would be good if you show the internal realization of ArrayList in RT. It may happen that it is just a wrapper around an array.
Such a Great Lecture mam
Sraddha maam you are great 😊😊😊😊😊😊😊
Thank u mam.explanation is super
Thank You Didi !!
Please do make a video on AWS , Types of cloud Computing & PCF(Pivotal Cloud Foundry)
one of the biggest drawback of arraylist is it doesn't store a value permanently, as program stops running it will kill the all the values
Isn't this true for every data type unless you specifically store values in a file?
@@ayzu7670Yes
well explained with proper details!!
Arraylist by its name suggests that it’s an improved version of an array. I am pretty sure, it starts with capacity of 10 and than doubles once the initial capacity becomes full. I highly doubt that the location of the elements are contiguous. The memory itself is called static unlike other data structures.
I meant non-contiguous. I also get that the mistakes happen. I love your channel.
u nailed it dear. what an explaination
your explanation way is excellent.
Ur array list lecture video is very good
amazing lecture. Very helpful .Thank You
This video was really good
Second I want heart didi waiting for next lec..
Very helpful this video
I never regret on my decision on subscribing you
#Apna College & shradda didi rocks
Kash aapke jaisa mujhe bhi coding aata.
Great explanation and plse upload more videos related to DSA.
Hey Shradhha , Please make a video on mental harrssment. I lost my job due to office politics
Most important topic in java...POINTERS ...Pls....upload a video on this.....it will be helpful for all
java doesn't have pointers!!!
pointers to hota hi nahi java me
Thank you didi
Great Explaination
I really like this java DSA course Didi please es playlist ko complete kardo DSA ke sare topic upload kardo this is very important
great thank u so much mam everything cleared now 🥰
Nice work.. Keep it up
Mam, Please make videos on DP too.
VERY HELPFUL VIDEO............
Thanks didi ❤️❤️❤️
over perfection in your videos !
Amazing shraddha❤️
Can you please make one more video on ArrayList to provide some more details, like problem types and solving approach?
Thank you :)
you are amazing ..............
tq very much very very usefull.
awesome concept di
(20 VIEWS) THANK YOU MAM.
Apni didi 😊
👍 great 👍👍🙏🙏
I use full ArrayList type 😊
In one of interview I have been asked question on default size of collection, so would be better if you will cover same topic along with one explanation on why collection framework use only Objects not primitve data type? @apnacollege
Hanji zaroor cover kiya jayega😌
So what was it's answer ??
Thanks 👍👍
Could you pleaae tell me in which video you have provided java memory management of heap and stack ?
Zeeerrooooooo !!
btw nice tutorial : )
Thankyou mam🙏🙏🙏
What is the difference between Collection vs Collections...?
please anyone explain!!
Thanku bhen
Great 👍👍
Thank you ma'am
Great 🙏