Top 10 Java collections framework interview questions for experienced[Most asked interview question]

Поделиться
HTML-код
  • Опубликовано: 30 ноя 2024

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

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

    00:32 How does HashMap work in Java?
    05:18 What is the difference between fail-fast and fail-safe Iterators?
    06:57 The difference between HashMap and Hashtable?
    08:10 When do you use ConcurrentHashMap in Java?
    09:40 What is CopyOnWrite Array List, how it is different than Array List and Vector?
    11:00 While passing a Collection as argument to a function, how can we make sure the function will not be able to modify it?
    11:47 How to decide between HashMap and TreeMap?
    12:49 What is Comparable and Comparator interface?

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

    Sister please provide CV preparation tips too

  • @sachinsingh-hm7cj
    @sachinsingh-hm7cj 3 года назад +6

    Hii, Thanks for uploading the live interviews they are of great value. If possible can you upload a pdf of mostly encountered questions/topics company wise it will be very helpful to follow up. thanks ☺️

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

      Sure, I will create one and will share the link in description

    • @PetTalks.
      @PetTalks. 3 года назад

      Thank you very much If you prepare the pdf...🙂

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

    For a pojo class, why do we need to create or override hashcode and equals method ?

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

      To change the behaviour according to our requirement, like differentiate on the basis of I'd only

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

    Great explanation 👍

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

    Hi, Thanks for helping those who are planning for job change. I have a doubt and a request.
    Doubt: What's the difference between segment and bucket when we talk about ConcurrentHashMap.
    Request - If you're taking mocks even now, can you please provide the URL of the form, where we can fill details to schedule a mock interview.

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

      @Stoic Guy Bucket is the complete array( by default 16 segments in a bucket).
      Hope I cleared your doubt. Join us on telegram, you will find the link in pinned messages.

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

    Keep update this type of video

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

    What are the limitations of storing data in HashMap? What if there is huge amount of data where the linkedlist too may cause issue like what they have discussed in binary tree enhancement in Java 8?

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

      Thread safety is one limitation.
      Linkedlist serve a different purpose, we go for map in case we need key value pair, otherwise we go for lists or array only

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

      @@JavaTechiesMansi : so for a huge data volume only ArrayList is a probable option. Can you have a topic on when to use which collection w.r.t. data volume?
      Also you mentioned to use CopyOnWriteArraylist being preferred over ArrayList? Did any of your projects used this?

  • @dp-sg8hc
    @dp-sg8hc 3 года назад +1

    Hi, Thanks for uploading valuable content. please Java8-Java11 interview questions as well.

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

    Thanks a lot for sharing valuable things. Please tell me steps followed by you to track JP Morgan.how did you apply to JP Morgan and how you got shortlisted..

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

      I updated Naukri portal almost daily and also filtered out few companies that I liked and put my resume over their career site. These 2 things helped me to get through very good companies like JP Morgan, Morgan Stanley, Oracle, FIS, Ciena.

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

      @@JavaTechies thanks a lot for reply

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

      @@prakashbtw678 definitely it matters, well organised informationand latest 3 projects, make sure you mention your role in each

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

      @@JavaTechies thank you

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

      @@prakashbtw678 welcome 🙏

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

    Hi, good job. The way you have started the video was good with an example. But later on, it was totally theoretical what everyone can google and find. It would be best if you have explained the topics with some sample example or code. This will help those who won't understand much from theory concepts. Best of luck with future videos.

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

      Thanks Vikas,yes this was our first video apart from Interviews, we have created a couple of more videos also, these are with code snippets

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

    Well done sis, thank you soo much

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

    Very useful

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

      Thank you, if you have any specific questions, feel free to ask, I will include them in coming videos

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

      @@JavaTechies Can we have a session on Generics?

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

      @@ramkumar_balu sure

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

    Thanks

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

    We have many design pattern, Pls list out design pattern to learn and crack product based company interview??

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

      Sure,
      Learn all the 5 creational design patterns, template, observer and strategy. Also learn SOLID Principles.

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

      Creational includes singleton, prototype, factory, abstract factory,builder design patterns

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

      @@JavaTechies thank you. Do you suggest any website, udemy course, plural website.. Etc to learn from basic??

    • @JavaTechies
      @JavaTechies  3 года назад +3

      @@prakashbtw678 Telusko from youtube, best and quick

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

      @@JavaTechies thank you

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

    I think in the video it is mentioned that equals in Object class does reference and content comparison, while equals in String class does content comparison only. This would be incorrect.

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

      It can be incorrect, thanks for noticing and corrections

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

      @@JavaTechies : Thanks for replying. I believe equals() in Object class does reference comparison only, while String has overridden equals() by including content comparison as well by checking if the object being considered is of String class.
      Hence, if we compare two String variables, one initialized as a constant, while the other initialized with a String constructor would fail == comparison, but pass equals comparison.

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

    Manasi you are great. Please upload L &T pseudo code asked in interview?

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

      Thankyou,
      Here is the link for the same
      javaconceptoftheday.com/find-frequency-of-all-digits-in-number-in-java/

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

    Which is the best book/online portal to learn Core Java?

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

      If you have time then for core java deep understanding go for java tutorial by durga sir. Telusko also share good lectures and his lectures are quicker as compared to Durga sir. You can choose the best suitable to you.
      Thanks

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

    Is careergap ok for java can I rejoin after having 1+ year break

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

    Thanks