ArrayList In Java + Notes | Java Placement Course

  Рет қаралды 694,192

Apna College

Apna College

Күн бұрын

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 KZbin Gear 😉: docs.google.co...
Notes of this Lecture:

Пікірлер: 326
@nikhilkoshti5390
@nikhilkoshti5390 6 ай бұрын
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.
@ronatkumarmuni4076
@ronatkumarmuni4076 5 ай бұрын
Enhanced For Loop
@arpitjain6866
@arpitjain6866 3 ай бұрын
We can also use Sout(Arrays.toString(names));
@mcastudent2k23
@mcastudent2k23 3 ай бұрын
It was helpful thank you
@abhinav7297
@abhinav7297 9 ай бұрын
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.
@jaygage9992
@jaygage9992 2 ай бұрын
Bro did you write it yourself or copy paste
@paapi_baccha2858
@paapi_baccha2858 2 жыл бұрын
Mca kr li mgr Java mai aaj tk kisi ne ye sb nahi bataya 😭😭😭 Thankyou so much ❤️❤️
@Vinno_vations
@Vinno_vations 3 жыл бұрын
I like that music in start😅🔥🔥🔥
@ElliotAlderson-ln2iq
@ElliotAlderson-ln2iq Жыл бұрын
Name?
@Shraddhaz_Guitar_Vibes
@Shraddhaz_Guitar_Vibes Жыл бұрын
Time-stamp ??
@devanshmaheshwari5108
@devanshmaheshwari5108 6 ай бұрын
​@@Shraddhaz_Guitar_Vibes Clap like background music
@sayanbala6191
@sayanbala6191 3 жыл бұрын
Microsoft wali didi 😍😍😍😍 best Java teacher.
@hugesman4836
@hugesman4836 Жыл бұрын
Thank you so much Shraddha Didi you saved me from getting depressed!!
@Sonu-jx6jl
@Sonu-jx6jl Жыл бұрын
Kaash mujhe starting se aisi hi teacher mili hoti toh mai top karta har baar
@saurabhram9043
@saurabhram9043 2 жыл бұрын
I guess after your explanation most of us won't even need notes. It was to the point. ❤️❤️
@sheetalsharma1675
@sheetalsharma1675 2 жыл бұрын
your right
@mohitrawat121
@mohitrawat121 Жыл бұрын
Absolutely right 😍❤️
@saptajitdeb5969
@saptajitdeb5969 2 жыл бұрын
Mam you have made the topic too easy for us to understand. Thank you mam
@honor8mobile54
@honor8mobile54 2 жыл бұрын
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.
@nerd6134
@nerd6134 3 жыл бұрын
Andaaz apna apna 😂❤️
@arpitgupta1816
@arpitgupta1816 Жыл бұрын
I love the energizing background music at start...
@gazalrafi7621
@gazalrafi7621 2 жыл бұрын
the way you explain the things is awesome
@sameerkhan-xu4ve
@sameerkhan-xu4ve 3 жыл бұрын
Di your teaching skills is awesome, you r one of my favourit youtuber.
@naumanfarooq4949
@naumanfarooq4949 2 жыл бұрын
Jeeti Raho Shradaha. Your nailed it. Respect and Love from Dushman Desh. ;)
@himass6260
@himass6260 2 жыл бұрын
Your voice and your teaching is wonderful mam ❤️
@anushkayadav8443
@anushkayadav8443 Жыл бұрын
I Liked the whole lec shraddha di❤thank you so much for such Content.
@viralvsongs
@viralvsongs 2 жыл бұрын
got to learn alot from u nd ur team ....love u team amn
@AvinashKumar-ps4tw
@AvinashKumar-ps4tw Жыл бұрын
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.
@kavitakumawat4929
@kavitakumawat4929 Жыл бұрын
@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?
@ShivuShivu-sz1jr
@ShivuShivu-sz1jr 7 ай бұрын
I think this entire playlist help full for the people those who want to good at DSA❤❤
@nitinmittal1706
@nitinmittal1706 2 жыл бұрын
Awesome tutoring style.. Really good shraddha
@anithkumar1524
@anithkumar1524 Жыл бұрын
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,🥰
@jyoshnamayeesuna8512
@jyoshnamayeesuna8512 Ай бұрын
Thank you Shraddha didi.....God bless u...u r a great teacher.
@sukuxsharma
@sukuxsharma Ай бұрын
For arrays int[ ] double[ ] string[]-- .length For string related object --.length() For classical object arrayList,set-- .size()
@trueindian2108
@trueindian2108 3 жыл бұрын
Hiii.. I have no coding background.... I have learnt java by seeing this videos. Thank you.
@Shraddhaz_Guitar_Vibes
@Shraddhaz_Guitar_Vibes Жыл бұрын
Which clg
@rishibharadwaj68
@rishibharadwaj68 Жыл бұрын
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!
@whybee1892
@whybee1892 6 ай бұрын
Thanks for the information!
@rohanchandane4131
@rohanchandane4131 3 жыл бұрын
Waiting for 1 M ❤️
@nitinpatil5541
@nitinpatil5541 Жыл бұрын
Thank you so much for informative session 😊
@ganeshjadhav3643
@ganeshjadhav3643 3 жыл бұрын
Thanks mam for continuing java class for us 🙏
@kumkumsharma8575
@kumkumsharma8575 2 жыл бұрын
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 🌻
@andyjohnson2046
@andyjohnson2046 Жыл бұрын
@kumkumsharma8575 How much time it took you to complete DSA?
@kumkumsharma8575
@kumkumsharma8575 Жыл бұрын
@@andyjohnson2046 it's depends on the depth u go
@AGoogleuser-ip3vg
@AGoogleuser-ip3vg 3 жыл бұрын
(20 VIEWS) THANK YOU MAM.
@saloskilo
@saloskilo 3 жыл бұрын
Wow! The way you teach is just amazing ❤
@kamertonaudiophileplayer847
@kamertonaudiophileplayer847 3 жыл бұрын
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.
@sumittupsundare8134
@sumittupsundare8134 2 жыл бұрын
As always .. very easy to understand .. Thankyou so much for this video
@mohdshahban7712
@mohdshahban7712 2 ай бұрын
mam aap ke padhane ke bad koi doute hi nahi aata hai allah aap ko lambi umer ata kre
@pinkytanwar153
@pinkytanwar153 3 ай бұрын
Thanks for such a valuable and easy to understand teaching
@abhaykonge969
@abhaykonge969 2 жыл бұрын
Mam is best 💯 thank....
@puspendusaha864
@puspendusaha864 2 жыл бұрын
Sraddha maam you are great 😊😊😊😊😊😊😊
@ravinarayansingh5890
@ravinarayansingh5890 3 жыл бұрын
As always....rocking and easy to understand..👍🤩👍
@androidgamer1304
@androidgamer1304 3 жыл бұрын
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
@Chachavimdhayak1
@Chachavimdhayak1 3 жыл бұрын
You're right. It's similar to vector in cpp
@kaizen6163
@kaizen6163 3 жыл бұрын
I think there are two ways to create ArrayList through Linked List and through Arrays. Not Sure
@avijitdey992
@avijitdey992 2 жыл бұрын
@@Chachavimdhayak1 in CPP it's continuous. in Java it's not
@aritrakumarbara5994
@aritrakumarbara5994 2 жыл бұрын
@@avijitdey992 no arraylist support contiguous memory allocation
@avronilbanerjee5302
@avronilbanerjee5302 3 ай бұрын
Yes, arraylist is just like c++ vector, she represented it as a doubly linkedlist which is totally wrong
@saiyamchauhan5756
@saiyamchauhan5756 2 жыл бұрын
Thank you sister ,you're good teacher
@alameenrizwan9417
@alameenrizwan9417 3 жыл бұрын
Plz make a video on, what and how we use java programming language Which course is better in java like core java, OOPS, etc...
@tariqnawaz9849
@tariqnawaz9849 3 жыл бұрын
super best the way you teach
@amanbaghel7841
@amanbaghel7841 3 жыл бұрын
Please do make a video on AWS , Types of cloud Computing & PCF(Pivotal Cloud Foundry)
@himass6260
@himass6260 2 жыл бұрын
Thank you so much mam i have understand very Vell in this concept
@debaprasaddas5196
@debaprasaddas5196 2 жыл бұрын
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 👍🏻
@chamoli1987
@chamoli1987 Жыл бұрын
Too good, explained the concepts very well
@mohammedsulemankhan6935
@mohammedsulemankhan6935 2 ай бұрын
Nice bgm, Increases the interest to peak
@mahekjoshi9959
@mahekjoshi9959 4 ай бұрын
Such a wonderful video I loved learning AL
@rajeshgoudkatnam1819
@rajeshgoudkatnam1819 5 ай бұрын
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.
@itsakashchavan6433
@itsakashchavan6433 3 жыл бұрын
Second I want heart didi waiting for next lec..
@lastgeneration2896
@lastgeneration2896 2 жыл бұрын
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.
@lastgeneration2896
@lastgeneration2896 2 жыл бұрын
I meant non-contiguous. I also get that the mistakes happen. I love your channel.
@Rieshu-l9i
@Rieshu-l9i 10 ай бұрын
#Apna College & shradda didi rocks
@P_R_lovebird
@P_R_lovebird 11 ай бұрын
🥳 Good to learn it 🙇
@skilz9525
@skilz9525 2 жыл бұрын
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
@ayzu7670
@ayzu7670 2 жыл бұрын
Isn't this true for every data type unless you specifically store values in a file?
@AmanKumarSinhaOfficial
@AmanKumarSinhaOfficial 11 ай бұрын
​@@ayzu7670Yes
@amanmaran6786
@amanmaran6786 3 жыл бұрын
I will watch this when I qualify in JEE
@amrajamarnath7952
@amrajamarnath7952 Жыл бұрын
No lag clear cut explanation without much theory
@srijitamandal7678
@srijitamandal7678 2 жыл бұрын
Can you please make one more video on ArrayList to provide some more details, like problem types and solving approach? Thank you :)
@kunalkheeva
@kunalkheeva 2 жыл бұрын
well explained with proper details!!
@sompandey2112
@sompandey2112 2 жыл бұрын
Such a Great Lecture mam
@rohitdey4551
@rohitdey4551 2 жыл бұрын
Most important topic in java...POINTERS ...Pls....upload a video on this.....it will be helpful for all
@skie20
@skie20 2 жыл бұрын
java doesn't have pointers!!!
@abhinavbgs98
@abhinavbgs98 Жыл бұрын
pointers to hota hi nahi java me
@123lightmovies
@123lightmovies 2 жыл бұрын
Could you pleaae tell me in which video you have provided java memory management of heap and stack ?
@ashutoshmedge7305
@ashutoshmedge7305 2 жыл бұрын
amazing lecture. Very helpful .Thank You
@Neha_Mashilkar01
@Neha_Mashilkar01 2 жыл бұрын
u nailed it dear. what an explaination
@code4u494
@code4u494 3 жыл бұрын
I never regret on my decision on subscribing you
@vrushabhkhot4688
@vrushabhkhot4688 2 жыл бұрын
Thank u mam.explanation is super
@manisharya2138
@manisharya2138 2 жыл бұрын
your explanation way is excellent.
@blackhorserider5768
@blackhorserider5768 3 жыл бұрын
Nice work.. Keep it up
@parthadutta3252
@parthadutta3252 2 жыл бұрын
Ur array list lecture video is very good
@devpashishpatel14
@devpashishpatel14 2 жыл бұрын
Great explanation and plse upload more videos related to DSA.
@itsmeprincetiwary
@itsmeprincetiwary Жыл бұрын
Kash aapke jaisa mujhe bhi coding aata.
@cryptowithfaizan8649
@cryptowithfaizan8649 2 жыл бұрын
I really like this java DSA course Didi please es playlist ko complete kardo DSA ke sare topic upload kardo this is very important
@HarshaliSanyo24
@HarshaliSanyo24 9 ай бұрын
Hey Shradhha , Please make a video on mental harrssment. I lost my job due to office politics
@hardikkk01
@hardikkk01 Жыл бұрын
Hii Dii I have a prblm in ArrayList when I type the same code according to you it show an error in which it say { This type ArrayList is not generic, it cannot be parameterized with arguments } I have tried many times can you pls help me .........
@anubhv0001
@anubhv0001 Жыл бұрын
over perfection in your videos !
@ripulagrawal1306
@ripulagrawal1306 Жыл бұрын
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
@kavitakumawat4929
@kavitakumawat4929 Жыл бұрын
Hanji zaroor cover kiya jayega😌
@Shraddhaz_Guitar_Vibes
@Shraddhaz_Guitar_Vibes Жыл бұрын
So what was it's answer ??
@mumbaikachallenge5526
@mumbaikachallenge5526 2 жыл бұрын
Amazing shraddha❤️
@kkmmmw
@kkmmmw 3 жыл бұрын
Didi , mara pas laptop nai and purchase karna ka liya passa nai hai to ab mai kay karu
@jyotiprakashpanda5818
@jyotiprakashpanda5818 3 жыл бұрын
there are many websites where u can type your code for practice(u can use phone)
@SnehaManhas835
@SnehaManhas835 Жыл бұрын
Doubt-- how she created object for non public class Account in other package at 37:52, if anybody knows please reply.
@maheshmahe7661
@maheshmahe7661 Жыл бұрын
Where she created the object. Can you specify correctly. Your time stamp is 37 where the video is only 17 minutes
@Crezy_Video_top
@Crezy_Video_top Жыл бұрын
Very helpful this video
@kega3747
@kega3747 2 жыл бұрын
How can we take input from the user in ArrayList of type String?
@gajrajsinghsarangdevot7118
@gajrajsinghsarangdevot7118 Жыл бұрын
for(int i = 1; i
@aneeshshettym5768
@aneeshshettym5768 3 ай бұрын
​@@gajrajsinghsarangdevot7118thankyou
@aartiyedatkar1967
@aartiyedatkar1967 2 жыл бұрын
great thank u so much mam everything cleared now 🥰
@Sumeet_100
@Sumeet_100 6 ай бұрын
Thank You Didi !!
@AmitKumar-cp1oz
@AmitKumar-cp1oz 3 ай бұрын
Mam, Please make videos on DP too.
@shitalmalviya9796
@shitalmalviya9796 2 жыл бұрын
You said Araaylist store data in non continuous form , then how they are link to each other? just like linked list it use the pointer?
@AnadiHirpara
@AnadiHirpara Жыл бұрын
What is the difference between Collection vs Collections...? please anyone explain!!
@deepakpanjwani4316
@deepakpanjwani4316 3 ай бұрын
Great Explaination
@nikhilghorpade3048
@nikhilghorpade3048 2 жыл бұрын
Zeeerrooooooo !! btw nice tutorial : )
@rajashreedeogade3989
@rajashreedeogade3989 Жыл бұрын
You said, arraylist is a list of arrays... how can elements be like integers.. can you explain how do we use functions of arraylist to get, update, delete arrays in arraylist..?
@arjunbhardwaj5922
@arjunbhardwaj5922 3 жыл бұрын
Apni didi 😊
@arnabadak5751
@arnabadak5751 2 жыл бұрын
VERY HELPFUL VIDEO............
@bigfan2258
@bigfan2258 2 жыл бұрын
Hello, arralylist mai ap ne println dala tha voh 5 1 2 mext line mai print print nai hua voh same linr mai print hua
@sumitsaurabh4670
@sumitsaurabh4670 2 жыл бұрын
awesome concept di
@akhilmohansingh4166
@akhilmohansingh4166 10 ай бұрын
Mam स्क्रैच क्या होता है 0:29 s
@xstylish_razz7424
@xstylish_razz7424 7 ай бұрын
Iska mtlb hota h shuru s starting s
@akhilmohansingh4166
@akhilmohansingh4166 7 ай бұрын
@@xstylish_razz7424 Thank you didi.
@krishnapandey2542
@krishnapandey2542 3 жыл бұрын
Didi time management pr ik video.. Kyuki Mai back-end seekh raha hu node Se or dsa bhi or to or college syllabus bhi plzzz
@chandrakantjadhav7039
@chandrakantjadhav7039 2 жыл бұрын
how to convert list of integer to two dimensional array without traversing. can we convert with the help of list.toArray() method?
@worldlykrittika4147
@worldlykrittika4147 5 ай бұрын
Di mein bina coding skills ke IT mein kis position ke apply kr sakti hu???
@SaravananBAS-om2zr
@SaravananBAS-om2zr Жыл бұрын
hi, can you tell me how to add resultset of 500 rows inside a list? and pass it to view page. I have added my own model object in list in dao class and send it to controller. From controller, i added the list values in addAttribute method of Model class and fetch it in jsp page. I am facing the issue, it shows the last record of my resultset 500 times in view page..plz suggest on it....and i am printing my list it shows like my model class name 'DK_Model'@367387fe44 like something while printing the list
@shimigami9884
@shimigami9884 2 жыл бұрын
If we want to shift all the element to by one index and store element in between the array list, then there is any method for that
@mihirdhami8386
@mihirdhami8386 3 жыл бұрын
Di learnvern or nptel ek freshers students ke liye productive platform rahega?🤔🤔
@arjunbhardwaj5922
@arjunbhardwaj5922 3 жыл бұрын
Nptel
Java Collections Framework | Java Placement Course
17:53
Apna College
Рет қаралды 687 М.
Arrays Introduction | Java Complete Placement Course | Lecture 10
25:44
Apna College
Рет қаралды 1,9 МЛН
СИНИЙ ИНЕЙ УЖЕ ВЫШЕЛ!❄️
01:01
DO$HIK
Рет қаралды 2,6 МЛН
Cheerleader Transformation That Left Everyone Speechless! #shorts
00:27
Fabiosa Best Lifehacks
Рет қаралды 15 МЛН
LinkedList vs ArrayList in Java Tutorial - Which Should You Use?
11:43
Coding with John
Рет қаралды 613 М.
ArrayLists in Java (Part 1)
10:59
Neso Academy
Рет қаралды 108 М.
#92 ArrayList in Java
11:54
Telusko
Рет қаралды 131 М.
Watch this before you start Coding! 5 Tips for Coders
13:53
Apna College
Рет қаралды 39 М.
Interface in Java | Learn Coding
15:09
Learn Coding
Рет қаралды 782 М.
14.5 LinkedList vs ArrayList in Java
9:16
Telusko
Рет қаралды 414 М.
Array vs. ArrayList in Java Tutorial - What's The Difference?
17:36
Coding with John
Рет қаралды 565 М.
Stack Data Structure in One Video | Java Placement Course
36:45
Apna College
Рет қаралды 765 М.
Reality of my Google Salary after TAXES
6:54
Fraz
Рет қаралды 298 М.