Java Collections Framework-Part8 | Queue Concept | Hands-on

Поділитися
Вставка
  • Опубліковано 7 лис 2024

КОМЕНТАРІ • 77

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

    Dear sir, your way to learning is very simple and great. I will follow your instructions.

  • @GOVARDHANACHARI-em9mm
    @GOVARDHANACHARI-em9mm 6 місяців тому +1

    I have watched many channels in youtue But ur explanation Just sprb remembered for Long time sir
    Thank u sir

  • @AneriPatel-cz1gg
    @AneriPatel-cz1gg 4 місяці тому +2

    Thank you so much, sir. You explained very well. Hats off to you!

  • @mudunurisaikrishnamraju5275
    @mudunurisaikrishnamraju5275 4 роки тому +7

    Superb explanation 👌. Sir pls teach full core java and data structures.

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

    Love this collections series, thanks so much!

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

    Sir, you are doing such a great job thank you for your guidance videos 👍🏻

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

    Love the way of teaching best video on the internate for queue concept

  • @renukachandana809
    @renukachandana809 17 днів тому +1

    Thank you sir gud explanation 😊

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

    In priority queue insertion order based on default natural sorting, duplicated allowed, hetrogeneous are not allowed , null insertion not possible .

  • @kya_karoge_jaanke1607
    @kya_karoge_jaanke1607 Рік тому +3

    We admire your work sir💫💫

  • @keyurpatel-r3d
    @keyurpatel-r3d Рік тому +4

    I have to mention two points.
    1) LinkedList implements Deque
    2) Insertion order is not maintained in the Priority queue.

    • @ಯಾತ್ರಿಕ
      @ಯಾತ್ರಿಕ Рік тому

      Yes , Insertion order is not maintained in priority queue.

    • @chiranjeevishankarn7904
      @chiranjeevishankarn7904 3 місяці тому +1

      1) Priority queue maintains natural ordering of the language
      2) Priority queue creates default size of 11 in the memory

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

    superb and excellent. explained in a very simple manner. remembered my college days.

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

    @SDET- QA Automation Techie please correct it ..priority queue will not preserve insertion order

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

    Got few insights, thanks

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

    thanks for this owsome tutorial:-)

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

    Top Notch Content Sir .......

  • @raji1358
    @raji1358 4 роки тому +1

    very good explanation.

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

    Sir, The way the topics are covered are awesome.Can you please cover BDD cucumber framework.

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

    Thank You!

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

    You mentioned that offer() method returns false if insertion is not successful, but in the code example, it threw ClassCastException.

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

      yes

  • @rameshrongala922
    @rameshrongala922 9 місяців тому +1

    Thanks sir.

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

    Sir, in priority queue insertion order is not maintained. Otherwise, I have followed all your video. Your videos are superb,

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

    Thank you sir

  • @umamaheshballa2193
    @umamaheshballa2193 4 роки тому

    thank you so much sir given valuable information to us , sir any planing to reaming collection topics

  • @ayushjain7555
    @ayushjain7555 9 місяців тому +1

    cant we use for loop in case of arrayList?

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

    sir,in priority queue is insertion order preserved????

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

    sir what about queue interfaces???

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

    Great Explanation!
    Just want to confirm 20:40, Is insertion order preserved in PriorityQueue too?
    I think the elements are stored based on the priority order which is ascending by default.
    can you please confirm?
    Thanks

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

      Yes Insertion order is preserved PriorityQueue too , 8:06

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

      Insertion orer is not preserved in priority Queuw

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

      Insertion order is not preserved...que.add("A");
      que.add("om");
      que.add("Tom");
      que.offer("A");
      System.out.println(que);
      Output:[A, A, Tom, om] @SDET could you confirm?

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

      I also have the same doubt.

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

      maximum ASCII value will have the highest priority. Output ordered based on ASCII value

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

    Your teaching was excellent sir, but I have doubts, sir if I use element(), peek() will I get the topmost element sir I add 4 elements by using add() like this order K, V, C, B added sir I get the element by using element() and peek() I get the element was 'B' sir... Could you please explain why and what's the reason...

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

    Sir, As you said, insertion order is preserved in the priority queue but it doesn't seem like this as I've tried this one & Insertion order is not getting preserved. Only sorted results will be shown in the console. Could you pls confirm once. ?

  • @DheerajKumar-mb9jk
    @DheerajKumar-mb9jk 3 роки тому +1

    Insertion order is not preserved . PriorityQueue return elements in ascending order.

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

    Thankyou for the collection series sir....

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

    Sir which algorithm it follow internally.

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

    I appreciate your teaching but just came to know by seeing comments below i.e., Insertion order is not preserved in PriorityQueue.
    I even cross checked, it is not preserved.
    Thanks

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

    thank you sir for great teaching but i have one little doubt that sir in priority queue hertogeneous data can save in IDE 2021-12 4.22.0 version is depend on version? can please ensure that?

  • @AmongUs-qt3uo
    @AmongUs-qt3uo Рік тому

    How is insertion Order preserved in priority queue?

  • @sachinsonone1823
    @sachinsonone1823 4 роки тому +1

    Please make video tree set and treemap

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

    You are the best sir please reply my mail regarding QA doubt which I have sent

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

    Thanks

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

    Sir.. Queue doesn't allow duplicates then how priority queue allows duplicates?

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

    Sir.
    Priority queue doesn't allow insertion order..

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

    Sir priorityQueue class implements Queue interface whereas LinkedList class implements deque interface which is child interface of Queue interface but you mentioned LinkedList class implements Queue interface.

    • @AmongUs-qt3uo
      @AmongUs-qt3uo Рік тому

      ArrayDqeueue implements dequeue interface. LinkedList implements Queue and LIst

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

      ❤❤

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

    Hi Sir, I have a question for priority queue, you said it preserves the insertion order but for me it is sorting the queue when I am trying to sys out the same. Can you please explain it?

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

      maximum ASCII value will have the highest priority.Output ordered based on ASCII value

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

      priority queue will not preserve insertion order

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

      it was a mistake, priorityQueue does not preserve insertion but Linkedlist does

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

    10:00

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

    cant able to understand saaar