Simply superb explanations ,Thank you so much sir for all the sessions .Its the the work of scholars like you who can contribute to the society , inspire and help people to learn the things easily.Hope wishes of all your viewers encourages you to keep up the best work ..Thank you so much .
@snigdhareddy9387 жыл бұрын
I have read so many articles about comparable and comparator interfaces but unable to understand perfectly. This is the best explanation I have ever read or heard. Hatsoff!!!!!
@DurgaSoftwareSolutions7 жыл бұрын
Hi Snigdha. Thank you very much for your feedback
@gprahalladrao5 жыл бұрын
No doubt Durga Sir is demo god of Java
@ManishRajlani10 жыл бұрын
I hv 4 yrs exp of java but never took interest in collection as it seems to be boring topic earlier..But this time...really awesome. Kindly upload map's tutorial too. Thanq so much..:)
@DurgaSoftwareSolutions10 жыл бұрын
Collection Navigation page (Order of topics)durgajobs.com/durgasir-collectionframework-youtube-videos-with-notes.htmlJAVA FAQS Navigation page (Order of topics)durgajobs.com/Java-interview-questions-by-durga-sir.html
@rameshteju6910 жыл бұрын
Durga Software Solutions 404 Not Found
@vaibhavsingh69174 жыл бұрын
We can also use Lambda Expression here TreeSet treeSet = new TreeSet( (Object o1, Object o2) -> { Integer i = (Integer) o1; Integer j = (Integer) o2; if (i < j) return 1; else if (i > j) return -1; else return 0; } );
@jvsnyc4 жыл бұрын
You certainly can. Venkat S pushes everyone hard to try to only do one-line lambdas, we could still define a function and pass it in as a method reference and make (almost) everyone happy.
@418aditya3 Жыл бұрын
Excellent videos on TreeSet Kudos
@pagalshaitan64958 жыл бұрын
sir please, upload the video on Map and Queue.your explanation is too good.
@jvsnyc4 жыл бұрын
kzbin.info/www/bejne/poSqp5WAbKx9bJo
@priyanshuborthakur77739 жыл бұрын
Superb. The way you explain things is simply great.
@DurgaSoftwareSolutions9 жыл бұрын
Priyanshu Borthakur View 42 videos on Collections in Java, kzbin.info/www/bejne/qHqWh55_qahjm6M View 5 videos on JSF, kzbin.info/www/bejne/qHLEYqqtjLGqZ7s View 50 videos on Oracle, kzbin.info/www/bejne/pomYiH2ZqdNmgdk View 35 videos on Hibernate, kzbin.info/www/bejne/iYubkpWHaNugmsU View 115 videos on Data Structures, kzbin.info/www/bejne/pXKkmnWHe7h4n80 View 58 videos on Struts, kzbin.info/www/bejne/pIrUpKGofaymh8k View 74 videos on Spring, kzbin.info/www/bejne/j6HWd4drZdKnntU View 41 videos on CRT, kzbin.info/www/bejne/nHW1n36GrtuFZ5Y View 12 videos on JAVA Reflections API & Annotations kzbin.info/www/bejne/eKmmqGOrid2NiNU View 39 videos on Java Real Time Project Implementation on Spring,Struts & Hibernate, kzbin.info/www/bejne/n3zRk2N3nLCNgJI
@DurgaSoftwareSolutions9 жыл бұрын
Durga Software Solutions View 9 videos on ENUM, kzbin.info/www/bejne/imLJfoqtfp53Z6c View 16 videos on Serialization, kzbin.info/www/bejne/mHrdl6Wsmdlqp68
@DurgaSoftwareSolutions9 жыл бұрын
Durga Software Solutions Hi, We are very Happy to say Our Expert Faculty Durga Sir's One-to-One Video Sessions on "Core Java with SCJP/OCJP" are available. Shooted from direct Class Room. YOu can access these videos from anywhere anytime. Around 200+ hours training, 178 Videos with clear explanation on every concept. 100% Satisfaction and Perfection in Subject guaranteed. For Demo Sessions Please call or drop a mail to us... DURGASOFT Online Training ph: 91-8885252627 mail :durgasoftonline@gmail.com, durgasoftonlinetraining@gmail.com Demo Sessions on youtube: 1. Language Fundamentals(16 Videos)kzbin.info/www/bejne/m4W7lWtvqZ2hnas 2. Operators & Assignments(7 Videos)kzbin.info/www/bejne/Z3uqgIOeft6bd68 3. Flow Control(6 Videos)kzbin.info/www/bejne/jmfVhGyseZ5gp68 durgasoft.com durgasoftonlinetraining.com facebook.com/durgasoftware durgajobs.com facebook.com/durgajobsinfo
@akshayudeg94675 ай бұрын
Nice sir you are only JVM❤
@thelight_3 жыл бұрын
Truly Java Guru!
@neerajsharma86107 жыл бұрын
Sir, you explain the thing in superb way. but please upload the video on Map interface and its corresponding classes.
@DurgaSoftwareSolutions7 жыл бұрын
Hi Neeraj. Plz contact our online team durgasoftonlinetraining@gmail.com or call us on this number +918885252627
@mousominath51267 жыл бұрын
kzbin.info/www/bejne/poSqp5WAbKx9bJo
@Zana_sh3 жыл бұрын
Awesome Sir !!
@surveaniket5582 жыл бұрын
sir, upload the video on map
@DurgaSoftwareSolutions2 жыл бұрын
Hello Anil. Plz contact our online team durgasoftonlinetraining@gmail.com or call us on this number +918885252627, 7207212427/28
@shaileshsingh84138 жыл бұрын
Effortlessly good thank you sir...
@virtuevishnu9 жыл бұрын
You are awesome sir, God bless you.
@mharisundar18 жыл бұрын
Very detailed explanation, really thanks .
@manishaagarwal53855 жыл бұрын
There is a typing mistake happen in notes that t.add(20) when it compare (20,10)--> it'll return -ve value but it mentioned as +ve ..so plz update the notes.
@ravi95166 жыл бұрын
Excellent sir!!!
@DurgaSoftwareSolutions6 жыл бұрын
Hello Ravi. Thanks for your valuable feedback. It will boost us to do new things. Please subscribe to get updates about new videos. For more videos, Plz contact our online team durgasoftonlinetraining@gmail.com or call us on this number +918885252627,7207212427/28
@chandansamant078 жыл бұрын
Nice trick...for implementing descending..
@shrutigoyal6006 жыл бұрын
JVM is going to dancee ...!!!
@ashwanisingh-dp7ce5 жыл бұрын
Why tree set has repeated number.. It should have unique value as it implements set interface
@jayap83553 жыл бұрын
Same doubt... Wouldn't it give an error?
@abhilashkokkonda17135 жыл бұрын
Excellent
@adityasaxena66195 жыл бұрын
Sir you said if we add first object then there would be no comparision but it is comparing even for first value also compare(10,10) is running please explain why?
@DurgaSoftwareSolutions5 жыл бұрын
Hello Aditya. Plz contact our online team durgasoftonlinetraining@gmail.com or call us on this number +918885252627, 7207212427/28
@krish00076 жыл бұрын
Awesome..!
@vmuralee10615 жыл бұрын
Hello Sir, compareTo() method is from comparable interface and its from java.lang package. but how you are using compareTo() method in comparator. how its possible to executed please explain it.
@chithanurivenkatesh55754 жыл бұрын
Hi Muralee.. Let me take this opportunity to answer your question.... As we know that the 'Integer' wrapper class implements Comparable Interface, we can use compareTo() on an 'Integer' class object. Ex: I1.compareTo(I2); Here, I1 is the object of 'Integer' wrapper class
@rajivraghu985710 жыл бұрын
Super Explanation.. :)
@ajaywankhade5054 Жыл бұрын
Thank u sir
@TheIndianVCC3 жыл бұрын
How can I get this full course by Durga Sir, Online?
@DurgaSoftwareSolutions3 жыл бұрын
Hello Friend. Plz contact our online team durgasoftonlinetraining@gmail.com or call us on this number +918885252627, 7207212427/28
@rajeshreddyalla763610 жыл бұрын
thank u so much...sir really awesome
@DurgaSoftwareSolutions9 жыл бұрын
Rajesh Reddy Alla View 42 videos on Collections in Java, kzbin.info/www/bejne/qHqWh55_qahjm6M View 5 videos on JSF, kzbin.info/www/bejne/qHLEYqqtjLGqZ7s View 50 videos on Oracle, kzbin.info/www/bejne/pomYiH2ZqdNmgdk View 35 videos on Hibernate, kzbin.info/www/bejne/iYubkpWHaNugmsU View 115 videos on Data Structures, kzbin.info/www/bejne/pXKkmnWHe7h4n80 View 58 videos on Struts, kzbin.info/www/bejne/pIrUpKGofaymh8k View 74 videos on Spring, kzbin.info/www/bejne/j6HWd4drZdKnntU View 41 videos on CRT, kzbin.info/www/bejne/nHW1n36GrtuFZ5Y View 12 videos on JAVA Reflections API & Annotations kzbin.info/www/bejne/eKmmqGOrid2NiNU View 39 videos on Java Real Time Project Implementation on Spring,Struts & Hibernate, kzbin.info/www/bejne/n3zRk2N3nLCNgJI View other videos on ADV JAVA kzbin.info/www/bejne/bmTNfaSKdsekh7c
@DurgaSoftwareSolutions9 жыл бұрын
Durga Software Solutions View 9 videos on ENUM, kzbin.info/www/bejne/imLJfoqtfp53Z6c View 16 videos on Serialization, kzbin.info/www/bejne/mHrdl6Wsmdlqp68
@JayHulageri10 жыл бұрын
AWESOME !!!
@DurgaSoftwareSolutions9 жыл бұрын
Jay Hulgeri View 42 videos on Collections in Java, kzbin.info/www/bejne/qHqWh55_qahjm6M View 5 videos on JSF, kzbin.info/www/bejne/qHLEYqqtjLGqZ7s View 50 videos on Oracle, kzbin.info/www/bejne/pomYiH2ZqdNmgdk View 35 videos on Hibernate, kzbin.info/www/bejne/iYubkpWHaNugmsU View 115 videos on Data Structures, kzbin.info/www/bejne/pXKkmnWHe7h4n80 View 58 videos on Struts, kzbin.info/www/bejne/pIrUpKGofaymh8k View 74 videos on Spring, kzbin.info/www/bejne/j6HWd4drZdKnntU View 41 videos on CRT, kzbin.info/www/bejne/nHW1n36GrtuFZ5Y View 12 videos on JAVA Reflections API & Annotations kzbin.info/www/bejne/eKmmqGOrid2NiNU View 39 videos on Java Real Time Project Implementation on Spring,Struts & Hibernate, kzbin.info/www/bejne/n3zRk2N3nLCNgJI View other videos on ADV JAVA kzbin.info/www/bejne/bmTNfaSKdsekh7c
@DurgaSoftwareSolutions9 жыл бұрын
Durga Software Solutions View 9 videos on ENUM, kzbin.info/www/bejne/imLJfoqtfp53Z6c View 16 videos on Serialization, kzbin.info/www/bejne/mHrdl6Wsmdlqp68
@DurgaSoftwareSolutions9 жыл бұрын
Durga Software Solutions Hi, We are very Happy to say Our Expert Faculty Durga Sir's One-to-One Video Sessions on "Core Java with SCJP/OCJP" are available. Shooted from direct Class Room. YOu can access these videos from anywhere anytime. Around 200+ hours training, 178 Videos with clear explanation on every concept. 100% Satisfaction and Perfection in Subject guaranteed. For Demo Sessions Please call or drop a mail to us... DURGASOFT Online Training ph: 91-8885252627 mail :durgasoftonline@gmail.com, durgasoftonlinetraining@gmail.com Demo Sessions on youtube: 1. Language Fundamentals(16 Videos)kzbin.info/www/bejne/m4W7lWtvqZ2hnas 2. Operators & Assignments(7 Videos)kzbin.info/www/bejne/Z3uqgIOeft6bd68 3. Flow Control(6 Videos)kzbin.info/www/bejne/jmfVhGyseZ5gp68 durgasoft.com durgasoftonlinetraining.com facebook.com/durgasoftware durgajobs.com facebook.com/durgajobsinfo
@jayap83553 жыл бұрын
Sir, As duplicate objects are not allowed in treeset, then how you took t.add(20) and t.add(20) Please clear my doubt
@DurgaSoftwareSolutions3 жыл бұрын
Hello Jaya. Plz contact our online team durgasoftonlinetraining@gmail.com or call us on this number +918885252627, 7207212427/28
@ranirawat98107 жыл бұрын
sir please can you tell, even though in mycomparator class you only implements comparator interface. then how you are directly using compareTo() method of comparable class. For using compareTo() method dont you need to implements comparable interface. It seems bit confusing to me.
@PawanKumar-zb3lu7 жыл бұрын
@RANI RAWAT actually he is using compareTo() method with Integer object and all Wrapper classes and Strings implements Comparable interface and compareTo() method is public so directly can be used....Hope this will help u
@sanjay-fr5ul9 жыл бұрын
Sir, in the last section of this video you have shown to add duplicate values by returning +1 or -1 So does it violates basic properties of Set??? Plz reply
@edwindhina8 жыл бұрын
sandy1316, you can avoid this by including the below code. if(integer1==integer2) return 0; else return 1; this code will eliminate duplicate. Basic idea is compare() method will do whatever we write in it. It wont mind the basic rule what Set has to follow. simple as that. Hope it helps you/
@chicku9757 жыл бұрын
How do you arrange 10, 0, 7, 9 in tree set in descending order ?
@thanujames16685 жыл бұрын
Can u provide the link for map tutorials
@DurgaSoftwareSolutions5 жыл бұрын
Hello Thanu James. Plz contact our online team durgasoftonlinetraining@gmail.com or call us on this number +918885252627, 7207212427/28
@jayneshahir88157 жыл бұрын
if mycomparator class is using compareTo method shouldn't it have to implement comparable interface ??
@Bigdaddy919827 жыл бұрын
I'm learning too, according to my understanding, we are implementing the Comparator interface from the java.util package and the Comparator interface has two methods defined, they are compare() and equals(). Therefore, you are implementing the compare method that is already defined in the comparator interface. If you don't need a custom sorting technique, JVM uses compareTo() internally to sort the entities and you don't need to implement comparable interface. Hope this helps!
@jayneshahir88157 жыл бұрын
Vamshi Gudipati yes thats true but I got the correct answer which is all the wrapper class and string class already implements comparable interface which contains compareTo method.😊🤗
@santruptamishra83145 жыл бұрын
In Treeset, duplicates are not allowed, how come 20 is inserted twice?? please explain.
@shubhammhatre47435 жыл бұрын
We have complete control over comparator () . 20 is inserted twice because we added such code. Jvm will blindly follow that code. It won't check for set's basic property. I hope you get it.
@prashantjadaun69524 жыл бұрын
only best
@jitendravarshney791810 жыл бұрын
really supereb
@DurgaSoftwareSolutions9 жыл бұрын
jitendra varshney View 42 videos on Collections in Java, kzbin.info/www/bejne/qHqWh55_qahjm6M View 5 videos on JSF, kzbin.info/www/bejne/qHLEYqqtjLGqZ7s View 50 videos on Oracle, kzbin.info/www/bejne/pomYiH2ZqdNmgdk View 35 videos on Hibernate, kzbin.info/www/bejne/iYubkpWHaNugmsU View 115 videos on Data Structures, kzbin.info/www/bejne/pXKkmnWHe7h4n80 View 58 videos on Struts, kzbin.info/www/bejne/pIrUpKGofaymh8k View 74 videos on Spring, kzbin.info/www/bejne/j6HWd4drZdKnntU View 41 videos on CRT, kzbin.info/www/bejne/nHW1n36GrtuFZ5Y View 12 videos on JAVA Reflections API & Annotations kzbin.info/www/bejne/eKmmqGOrid2NiNU View 39 videos on Java Real Time Project Implementation on Spring,Struts & Hibernate, kzbin.info/www/bejne/n3zRk2N3nLCNgJI
@DurgaSoftwareSolutions9 жыл бұрын
Durga Software Solutions View 9 videos on ENUM, kzbin.info/www/bejne/imLJfoqtfp53Z6c View 16 videos on Serialization, kzbin.info/www/bejne/mHrdl6Wsmdlqp68
@rahulkad53922 жыл бұрын
Sir here only 10 insert what is the error there
@DurgaSoftwareSolutions2 жыл бұрын
Hello Rahul. Plz contact our online team durgasoftonlinetraining@gmail.com or call us on this number +918885252627, 7207212427/28
@VeerasettiSuneel10 жыл бұрын
thankyu sir
@DurgaSoftwareSolutions9 жыл бұрын
Sunil kumar View 42 videos on Collections in Java, kzbin.info/www/bejne/qHqWh55_qahjm6M View 5 videos on JSF, kzbin.info/www/bejne/qHLEYqqtjLGqZ7s View 50 videos on Oracle, kzbin.info/www/bejne/pomYiH2ZqdNmgdk View 35 videos on Hibernate, kzbin.info/www/bejne/iYubkpWHaNugmsU View 115 videos on Data Structures, kzbin.info/www/bejne/pXKkmnWHe7h4n80 View 58 videos on Struts, kzbin.info/www/bejne/pIrUpKGofaymh8k View 74 videos on Spring, kzbin.info/www/bejne/j6HWd4drZdKnntU View 41 videos on CRT, kzbin.info/www/bejne/nHW1n36GrtuFZ5Y View 12 videos on JAVA Reflections API & Annotations kzbin.info/www/bejne/eKmmqGOrid2NiNU View 39 videos on Java Real Time Project Implementation on Spring,Struts & Hibernate, kzbin.info/www/bejne/n3zRk2N3nLCNgJI View other videos on ADV JAVA kzbin.info/www/bejne/bmTNfaSKdsekh7c
@DurgaSoftwareSolutions9 жыл бұрын
Durga Software Solutions View 9 videos on ENUM, kzbin.info/www/bejne/imLJfoqtfp53Z6c View 16 videos on Serialization, kzbin.info/www/bejne/mHrdl6Wsmdlqp68
@grvlal8 жыл бұрын
Epic!
@anilkumar-po4qr9 жыл бұрын
great
@khushgandhi66387 жыл бұрын
👌👌👌👌💗
@rahulkad53922 жыл бұрын
Plz sir reply
@DurgaSoftwareSolutions2 жыл бұрын
Hello Rahul. Plz contact our online team durgasoftonlinetraining@gmail.com or call us on this number +918885252627, 7207212427/28