ArrayList In Java + Notes | Java Placement Course

Поділитися
Вставка
  • Опубліковано 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 UA-cam Gear 😉: docs.google.co...
    Notes of this Lecture:

КОМЕНТАРІ • 330

  • @paapi_baccha2858
    @paapi_baccha2858 2 роки тому +8

    Mca kr li mgr Java mai aaj tk kisi ne ye sb nahi bataya 😭😭😭
    Thankyou so much ❤️❤️

  • @abhinav7297
    @abhinav7297 11 місяців тому +11

    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 4 місяці тому +1

      Bro did you write it yourself or copy paste

  • @Vinno_vations
    @Vinno_vations 3 роки тому +165

    I like that music in start😅🔥🔥🔥

  • @Sonu-jx6jl
    @Sonu-jx6jl Рік тому +3

    Kaash mujhe starting se aisi hi teacher mili hoti toh mai top karta har baar

  • @nikhilkoshti5390
    @nikhilkoshti5390 8 місяців тому +29

    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.

  • @saurabhram9043
    @saurabhram9043 2 роки тому +31

    I guess after your explanation most of us won't even need notes. It was to the point. ❤️❤️

  • @hugesman4836
    @hugesman4836 Рік тому +2

    Thank you so much Shraddha Didi you saved me from getting depressed!!

  • @sayanbala6191
    @sayanbala6191 3 роки тому +25

    Microsoft wali didi 😍😍😍😍 best Java teacher.

  • @honor8mobile54
    @honor8mobile54 2 роки тому +18

    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.

  • @saptajitdeb5969
    @saptajitdeb5969 2 роки тому +3

    Mam you have made the topic too easy for us to understand. Thank you mam

  • @kumkumsharma8575
    @kumkumsharma8575 2 роки тому +11

    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

  • @nerd6134
    @nerd6134 3 роки тому +2

    Andaaz apna apna 😂❤️

  • @sameerkhan-xu4ve
    @sameerkhan-xu4ve 3 роки тому +7

    Di your teaching skills is awesome, you r one of my favourit youtuber.

  • @gazalrafi7621
    @gazalrafi7621 2 роки тому +2

    the way you explain the things is awesome

  • @arpitgupta1816
    @arpitgupta1816 Рік тому +1

    I love the energizing background music at start...

  • @jyoshnamayeesuna8512
    @jyoshnamayeesuna8512 3 місяці тому

    Thank you Shraddha didi.....God bless u...u r a great teacher.

  • @himass6260
    @himass6260 2 роки тому +1

    Your voice and your teaching is wonderful mam ❤️

  • @anushkayadav8443
    @anushkayadav8443 Рік тому +1

    I Liked the whole lec shraddha di❤thank you so much for such Content.

  • @ShivuShivu-sz1jr
    @ShivuShivu-sz1jr 9 місяців тому +1

    I think this entire playlist help full for the people those who want to good at DSA❤❤

  • @nitinmittal1706
    @nitinmittal1706 2 роки тому +2

    Awesome tutoring style.. Really good shraddha

  • @viralvsongs
    @viralvsongs 3 роки тому +2

    got to learn alot from u nd ur team ....love u team amn

  • @SachAurSirfSach
    @SachAurSirfSach 4 місяці тому

    mam aap ke padhane ke bad koi doute hi nahi aata hai allah aap ko lambi umer ata kre

  • @naumanfarooq4949
    @naumanfarooq4949 2 роки тому +2

    Jeeti Raho Shradaha. Your nailed it. Respect and Love from Dushman Desh. ;)

  • @anithkumar1524
    @anithkumar1524 Рік тому +1

    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,🥰

  • @amanmaran6786
    @amanmaran6786 3 роки тому +6

    I will watch this when I qualify in JEE

  • @saloskilo
    @saloskilo 3 роки тому +5

    Wow!
    The way you teach is just amazing ❤

  • @trueindian2108
    @trueindian2108 3 роки тому +1

    Hiii.. I have no coding background.... I have learnt java by seeing this videos. Thank you.

  • @abhaykonge969
    @abhaykonge969 2 роки тому +2

    Mam is best 💯 thank....

  • @tariqnawaz9849
    @tariqnawaz9849 3 роки тому +2

    super best the way you teach

  • @saiyamchauhan5756
    @saiyamchauhan5756 2 роки тому +1

    Thank you sister ,you're good teacher

  • @puspendusaha864
    @puspendusaha864 3 роки тому

    Sraddha maam you are great 😊😊😊😊😊😊😊

  • @debaprasaddas5196
    @debaprasaddas5196 2 роки тому +5

    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 👍🏻

  • @nitinpatil5541
    @nitinpatil5541 2 роки тому +4

    Thank you so much for informative session 😊

  • @pinkytanwar153
    @pinkytanwar153 5 місяців тому

    Thanks for such a valuable and easy to understand teaching

  • @sumittupsundare8134
    @sumittupsundare8134 2 роки тому +2

    As always .. very easy to understand .. Thankyou so much for this video

  • @rohanchandane4131
    @rohanchandane4131 3 роки тому +7

    Waiting for 1 M ❤️

  • @ravinarayansingh5890
    @ravinarayansingh5890 3 роки тому +2

    As always....rocking and easy to understand..👍🤩👍

  • @ganeshjadhav3643
    @ganeshjadhav3643 3 роки тому +4

    Thanks mam for continuing java class for us 🙏

  • @AvinashKumar-ps4tw
    @AvinashKumar-ps4tw Рік тому +6

    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?

  • @P_R_lovebird
    @P_R_lovebird Рік тому +1

    🥳 Good to learn it 🙇

  • @mohammedsulemankhan6935
    @mohammedsulemankhan6935 4 місяці тому

    Nice bgm, Increases the interest to peak

  • @jinalcreationshorts506
    @jinalcreationshorts506 27 днів тому

    thank u so umuch . your teaching is amazing

  • @himass6260
    @himass6260 2 роки тому +1

    Thank you so much mam i have understand very Vell in this concept

  • @Rieshu-l9i
    @Rieshu-l9i 11 місяців тому +1

    #Apna College & shradda didi rocks

  • @sukuxsharma
    @sukuxsharma 3 місяці тому

    For arrays int[ ] double[ ] string[]-- .length
    For string related object --.length()
    For classical object arrayList,set-- .size()

  • @androidgamer1304
    @androidgamer1304 3 роки тому +27

    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 3 роки тому

      @@Chachavimdhayak1 in CPP it's continuous. in Java it's not

    • @aritrakumarbara5994
      @aritrakumarbara5994 2 роки тому

      @@avijitdey992 no arraylist support contiguous memory allocation

    • @avronilbanerjee5302
      @avronilbanerjee5302 4 місяці тому

      Yes, arraylist is just like c++ vector, she represented it as a doubly linkedlist which is totally wrong

  • @mahekjoshi9959
    @mahekjoshi9959 6 місяців тому

    Such a wonderful video I loved learning AL

  • @code4u494
    @code4u494 3 роки тому

    I never regret on my decision on subscribing you

  • @sompandey2112
    @sompandey2112 2 роки тому +1

    Such a Great Lecture mam

  • @amrajamarnath7952
    @amrajamarnath7952 Рік тому

    No lag clear cut explanation without much theory

  • @premmore2304
    @premmore2304 3 дні тому

    This video was really good

  • @Sumeet_100
    @Sumeet_100 7 місяців тому +1

    Thank You Didi !!

  • @rajeshgoudkatnam1819
    @rajeshgoudkatnam1819 7 місяців тому

    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.

  • @parthadutta3252
    @parthadutta3252 3 роки тому

    Ur array list lecture video is very good

  • @Neha_Mashilkar01
    @Neha_Mashilkar01 2 роки тому

    u nailed it dear. what an explaination

  • @alameenrizwan9417
    @alameenrizwan9417 3 роки тому +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...

  • @blackhorserider5768
    @blackhorserider5768 3 роки тому +1

    Nice work.. Keep it up

  • @deepakpanjwani4316
    @deepakpanjwani4316 5 місяців тому

    Great Explaination

  • @itsakashchavan6433
    @itsakashchavan6433 3 роки тому +2

    Second I want heart didi waiting for next lec..

  • @itsmeprincetiwary
    @itsmeprincetiwary 2 роки тому

    Kash aapke jaisa mujhe bhi coding aata.

  • @rishibharadwaj68
    @rishibharadwaj68 Рік тому +18

    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 7 місяців тому

      Thanks for the information!

  • @manisharya2138
    @manisharya2138 2 роки тому

    your explanation way is excellent.

  • @chamoli1987
    @chamoli1987 Рік тому +2

    Too good, explained the concepts very well

  • @Crezy_Video_top
    @Crezy_Video_top Рік тому +1

    Very helpful this video

  • @mumbaikachallenge5526
    @mumbaikachallenge5526 2 роки тому

    Amazing shraddha❤️

  • @vrushabhkhot4688
    @vrushabhkhot4688 3 роки тому +2

    Thank u mam.explanation is super

  • @kunalkheeva
    @kunalkheeva 2 роки тому +2

    well explained with proper details!!

  • @lastgeneration2896
    @lastgeneration2896 3 роки тому +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 3 роки тому

      I meant non-contiguous. I also get that the mistakes happen. I love your channel.

  • @kamertonaudiophileplayer847
    @kamertonaudiophileplayer847 3 роки тому +20

    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.

  • @anubhv0001
    @anubhv0001 Рік тому

    over perfection in your videos !

  • @arnabadak5751
    @arnabadak5751 2 роки тому

    VERY HELPFUL VIDEO............

  • @skilz9525
    @skilz9525 3 роки тому +7

    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 Рік тому

      ​@@ayzu7670Yes

  • @ashutoshmedge7305
    @ashutoshmedge7305 2 роки тому +1

    amazing lecture. Very helpful .Thank You

  • @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

  • @hmm5922
    @hmm5922 3 роки тому +1

    Apni didi 😊

  • @sumitsaurabh4670
    @sumitsaurabh4670 2 роки тому

    awesome concept di

  • @rohitdey4551
    @rohitdey4551 3 роки тому +3

    Most important topic in java...POINTERS ...Pls....upload a video on this.....it will be helpful for all

    • @skie20
      @skie20 2 роки тому +2

      java doesn't have pointers!!!

    • @abhinavbgs98
      @abhinavbgs98 Рік тому +2

      pointers to hota hi nahi java me

  • @sunilgokhare2854
    @sunilgokhare2854 Рік тому

    Great 👍👍

  • @amanbaghel7841
    @amanbaghel7841 3 роки тому +4

    Please do make a video on AWS , Types of cloud Computing & PCF(Pivotal Cloud Foundry)

  • @amansayyad7286
    @amansayyad7286 3 роки тому +1

    👍 great 👍👍🙏🙏

  • @sapnagi8693
    @sapnagi8693 3 роки тому

    you are amazing ..............

  • @devpashishpatel14
    @devpashishpatel14 2 роки тому +1

    Great explanation and plse upload more videos related to DSA.

  • @nikhilghorpade3048
    @nikhilghorpade3048 3 роки тому

    Zeeerrooooooo !!
    btw nice tutorial : )

  • @aartiyedatkar1967
    @aartiyedatkar1967 2 роки тому

    great thank u so much mam everything cleared now 🥰

  • @AmitKumar-cp1oz
    @AmitKumar-cp1oz 4 місяці тому +1

    Mam, Please make videos on DP too.

  • @justfitwithbiju
    @justfitwithbiju 2 роки тому +1

    Thanks didi ❤️❤️❤️

  • @amitgupta624
    @amitgupta624 Рік тому +1

    Thank you didi

  • @HarshaliSanyo24
    @HarshaliSanyo24 11 місяців тому +1

    Hey Shradhha , Please make a video on mental harrssment. I lost my job due to office politics

  • @anshikagupta7068
    @anshikagupta7068 2 роки тому +1

    Thanks 👍👍

  • @VikasVikas-es7eg
    @VikasVikas-es7eg 2 роки тому

    tq very much very very usefull.

  • @sameersd7741
    @sameersd7741 2 роки тому

    outstanding mam

  • @srijitamandal7678
    @srijitamandal7678 3 роки тому +8

    Can you please make one more video on ArrayList to provide some more details, like problem types and solving approach?
    Thank you :)

  • @pankajkumarsingh673
    @pankajkumarsingh673 2 роки тому

    Great 🙏

  • @KOMIT..KUMAR12
    @KOMIT..KUMAR12 Рік тому

    I use full ArrayList type 😊

  • @innocentme
    @innocentme 2 роки тому

    Excellent

  • @girdharipatel2
    @girdharipatel2 3 роки тому +1

    Thankyou mam🙏🙏🙏

  • @siddheshwarshingare9637
    @siddheshwarshingare9637 2 роки тому

    teching style is good

  • @vijaybagal712
    @vijaybagal712 2 роки тому

    Thanks didi👍🏻👌

  • @AGoogleuser-ip3vg
    @AGoogleuser-ip3vg 3 роки тому +29

    (20 VIEWS) THANK YOU MAM.

  • @gauravsonurkar1599
    @gauravsonurkar1599 2 роки тому

    Thank you dii😃