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:

Комментарии • 330

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

  • @paapi_baccha2858
    @paapi_baccha2858 2 года назад +8

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

  • @Vinno_vations
    @Vinno_vations 3 года назад +165

    I like that music in start😅🔥🔥🔥

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

  • @hugesman4836
    @hugesman4836 Год назад +2

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

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

  • @Sonu-jx6jl
    @Sonu-jx6jl Год назад +3

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

  • @saurabhram9043
    @saurabhram9043 2 года назад +31

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

  • @saptajitdeb5969
    @saptajitdeb5969 2 года назад +3

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

  • @sameerkhan-xu4ve
    @sameerkhan-xu4ve 3 года назад +7

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

  • @arpitgupta1816
    @arpitgupta1816 Год назад +1

    I love the energizing background music at start...

  • @himass6260
    @himass6260 2 года назад +1

    Your voice and your teaching is wonderful mam ❤️

  • @gazalrafi7621
    @gazalrafi7621 2 года назад +2

    the way you explain the things is awesome

  • @viralvsongs
    @viralvsongs 3 года назад +2

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

  • @sayanbala6191
    @sayanbala6191 3 года назад +25

    Microsoft wali didi 😍😍😍😍 best Java teacher.

  • @jyoshnamayeesuna8512
    @jyoshnamayeesuna8512 3 месяца назад

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

  • @anushkayadav8443
    @anushkayadav8443 Год назад +1

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

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

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

  • @nitinmittal1706
    @nitinmittal1706 2 года назад +2

    Awesome tutoring style.. Really good shraddha

  • @ShivuShivu-sz1jr
    @ShivuShivu-sz1jr 9 месяцев назад +1

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

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

  • @saloskilo
    @saloskilo 3 года назад +5

    Wow!
    The way you teach is just amazing ❤

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

  • @sumittupsundare8134
    @sumittupsundare8134 2 года назад +2

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

  • @nitinpatil5541
    @nitinpatil5541 2 года назад +4

    Thank you so much for informative session 😊

  • @saiyamchauhan5756
    @saiyamchauhan5756 2 года назад +1

    Thank you sister ,you're good teacher

  • @abhaykonge969
    @abhaykonge969 2 года назад +2

    Mam is best 💯 thank....

  • @ganeshjadhav3643
    @ganeshjadhav3643 3 года назад +4

    Thanks mam for continuing java class for us 🙏

  • @pinkytanwar153
    @pinkytanwar153 5 месяцев назад

    Thanks for such a valuable and easy to understand teaching

  • @tariqnawaz9849
    @tariqnawaz9849 3 года назад +2

    super best the way you teach

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

  • @trueindian2108
    @trueindian2108 3 года назад +1

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

  • @nerd6134
    @nerd6134 3 года назад +2

    Andaaz apna apna 😂❤️

  • @himass6260
    @himass6260 2 года назад +1

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

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

  • @sukuxsharma
    @sukuxsharma 3 месяца назад

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

  • @SachAurSirfSach
    @SachAurSirfSach 4 месяца назад

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

  • @amanmaran6786
    @amanmaran6786 3 года назад +6

    I will watch this when I qualify in JEE

  • @rohanchandane4131
    @rohanchandane4131 3 года назад +7

    Waiting for 1 M ❤️

  • @mohammedsulemankhan6935
    @mohammedsulemankhan6935 4 месяца назад

    Nice bgm, Increases the interest to peak

  • @jinalcreationshorts506
    @jinalcreationshorts506 27 дней назад

    thank u so umuch . your teaching is amazing

  • @ravinarayansingh5890
    @ravinarayansingh5890 3 года назад +2

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

  • @naumanfarooq4949
    @naumanfarooq4949 2 года назад +2

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

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

  • @mahekjoshi9959
    @mahekjoshi9959 6 месяцев назад

    Such a wonderful video I loved learning AL

  • @chamoli1987
    @chamoli1987 Год назад +2

    Too good, explained the concepts very well

  • @amrajamarnath7952
    @amrajamarnath7952 Год назад

    No lag clear cut explanation without much theory

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

  • @P_R_lovebird
    @P_R_lovebird Год назад +1

    🥳 Good to learn it 🙇

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

  • @sompandey2112
    @sompandey2112 2 года назад +1

    Such a Great Lecture mam

  • @puspendusaha864
    @puspendusaha864 3 года назад

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

  • @vrushabhkhot4688
    @vrushabhkhot4688 3 года назад +2

    Thank u mam.explanation is super

  • @Sumeet_100
    @Sumeet_100 7 месяцев назад +1

    Thank You Didi !!

  • @amanbaghel7841
    @amanbaghel7841 3 года назад +4

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

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

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

  • @Neha_Mashilkar01
    @Neha_Mashilkar01 2 года назад

    u nailed it dear. what an explaination

  • @manisharya2138
    @manisharya2138 2 года назад

    your explanation way is excellent.

  • @parthadutta3252
    @parthadutta3252 3 года назад

    Ur array list lecture video is very good

  • @ashutoshmedge7305
    @ashutoshmedge7305 2 года назад +1

    amazing lecture. Very helpful .Thank You

  • @premmore2304
    @premmore2304 3 дня назад

    This video was really good

  • @itsakashchavan6433
    @itsakashchavan6433 3 года назад +2

    Second I want heart didi waiting for next lec..

  • @Crezy_Video_top
    @Crezy_Video_top Год назад +1

    Very helpful this video

  • @code4u494
    @code4u494 3 года назад

    I never regret on my decision on subscribing you

  • @Rieshu-l9i
    @Rieshu-l9i 11 месяцев назад +1

    #Apna College & shradda didi rocks

  • @itsmeprincetiwary
    @itsmeprincetiwary 2 года назад

    Kash aapke jaisa mujhe bhi coding aata.

  • @devpashishpatel14
    @devpashishpatel14 2 года назад +1

    Great explanation and plse upload more videos related to DSA.

  • @HarshaliSanyo24
    @HarshaliSanyo24 11 месяцев назад +1

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

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

  • @amitgupta624
    @amitgupta624 Год назад +1

    Thank you didi

  • @deepakpanjwani4316
    @deepakpanjwani4316 5 месяцев назад

    Great Explaination

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

  • @aartiyedatkar1967
    @aartiyedatkar1967 2 года назад

    great thank u so much mam everything cleared now 🥰

  • @blackhorserider5768
    @blackhorserider5768 3 года назад +1

    Nice work.. Keep it up

  • @AmitKumar-cp1oz
    @AmitKumar-cp1oz 4 месяца назад +1

    Mam, Please make videos on DP too.

  • @arnabadak5751
    @arnabadak5751 2 года назад

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

  • @justfitwithbiju
    @justfitwithbiju 2 года назад +1

    Thanks didi ❤️❤️❤️

  • @anubhv0001
    @anubhv0001 Год назад

    over perfection in your videos !

  • @mumbaikachallenge5526
    @mumbaikachallenge5526 2 года назад

    Amazing shraddha❤️

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

  • @sapnagi8693
    @sapnagi8693 3 года назад

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

  • @VikasVikas-es7eg
    @VikasVikas-es7eg 2 года назад

    tq very much very very usefull.

  • @sumitsaurabh4670
    @sumitsaurabh4670 2 года назад

    awesome concept di

  • @AGoogleuser-ip3vg
    @AGoogleuser-ip3vg 3 года назад +29

    (20 VIEWS) THANK YOU MAM.

  • @hmm5922
    @hmm5922 3 года назад +1

    Apni didi 😊

  • @amansayyad7286
    @amansayyad7286 3 года назад +1

    👍 great 👍👍🙏🙏

  • @KOMIT..KUMAR12
    @KOMIT..KUMAR12 Год назад

    I use full ArrayList type 😊

  • @ripulagrawal1306
    @ripulagrawal1306 Год назад +4

    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

  • @anshikagupta7068
    @anshikagupta7068 2 года назад +1

    Thanks 👍👍

  • @123lightmovies
    @123lightmovies 3 года назад +3

    Could you pleaae tell me in which video you have provided java memory management of heap and stack ?

  • @nikhilghorpade3048
    @nikhilghorpade3048 3 года назад

    Zeeerrooooooo !!
    btw nice tutorial : )

  • @girdharipatel2
    @girdharipatel2 3 года назад +1

    Thankyou mam🙏🙏🙏

  • @AnadiHirpara
    @AnadiHirpara Год назад +2

    What is the difference between Collection vs Collections...?
    please anyone explain!!

  • @Mr.coderrr108
    @Mr.coderrr108 Год назад +1

    Thanku bhen

  • @sunilgokhare2854
    @sunilgokhare2854 Год назад

    Great 👍👍

  • @02_apshannakandulna_it71
    @02_apshannakandulna_it71 Год назад

    Thank you ma'am

  • @pankajkumarsingh673
    @pankajkumarsingh673 2 года назад

    Great 🙏