Awesome Lecture Sir, You still are in play. Best teaching style. Appreciated.
@remeshkumar76124 жыл бұрын
Small correction: StringBuffer implements Comparable starting from java 11.
@puneethchidura37134 жыл бұрын
thanks for the informarion. It really helped me.
@AbhishekPandey-mi1wi2 жыл бұрын
This video was released on May 3, 2014, we have Java 1.8 at that time. Whatever he has taught, it is correct. However, you are commenting after 7 years with upgraded version changes, which wouldn't really make any sense.
@sumantkumar56502 жыл бұрын
Yes Sir, I am able to get the output for StringBuffer program. I am having latest java. Thank you so much sir for this type quality teaching.
@IamJ____0001 Жыл бұрын
ya thanks mannn...
@prakashreddy773 Жыл бұрын
2:25 Now in 2023 TreeSet implements comparable Interface sir. The Code is working fine.
@SahilRajput-wg2ep Жыл бұрын
finally , i thought why my code is working lmao, btw thanks mate.
@SahilRajput-wg2ep Жыл бұрын
now can we say that there are only 3 constructors in java ? as comparable is implemented by default ??
@amandeepsingh23149 жыл бұрын
really sir,you done a great job. best teacher available online
@persistencej311610 жыл бұрын
god bless you sir ... thanks a lot for these tutorials
@shruthireddynallabolu77369 жыл бұрын
Really good job Durga garu, i like your teaching style.
@sheikh.sameer6 жыл бұрын
As a side note: that is a half truth that TreeSet doesn't allow null. It depends on the implementation of your comparator. If you want to add null anyhow, tune your comparator such that it allows nulls. eg. TreeSet ts = new TreeSet(new Comparator() { @Override public int compare(Object o1, Object o2) { return o1==null?-1:(o2==null?1:0); } }); ts.add(null); ts.add(null); System.out.println(ts); ------O/P------- [null, null] If you are using TreeSet with natural sorting, it doesn't allow null.
@avatargirase10 жыл бұрын
For Interview Questions :- Try inserting t.add(new StringBuffer("MyString")) only once and run. Jvm wont throw any exception as there is nothing to compare with. Once you start adding another entry jvm need comparison thing.
@wasiimo9 жыл бұрын
Interesting never thought of that one.
@Anillkumargallipelli7219 Жыл бұрын
Yes bro, JVM never thrown any exception
@techhub92695 жыл бұрын
Thanks sir... you are really doing well
@fardilviews3 жыл бұрын
But from my case, I don't find any exception import java.util.TreeSet; public class TreeSetDemo2 { public static void main(String[] args) { TreeSet t = new TreeSet();//should homogeneous and comparable t.add(new StringBuffer("A"));//StringBuffer are not comparable t.add(new StringBuffer("Z")); t.add(new StringBuffer("B")); t.add(new StringBuffer("L")); System.out.println(t); } }
@niteshsince19828 жыл бұрын
Thank you very much Durga sir. very helpful.
@SahilRajput-wg2ep Жыл бұрын
IN 2023 now can we say that there are only 3 constructors in java ? as comparable is implemented by default ??
@DurgaSoftwareSolutions Жыл бұрын
Hello Sahil. Plz contact our online team durgasoftonlinetraining@gmail.com or call us on this number +918885252627, 7207212427/28
@abhilashkokkonda17135 жыл бұрын
Good explanation
@prashantpharate9 жыл бұрын
It was possible to add a null element as the first element of a TreeSet/TreeMap in Java 6, but it was considered a bug:
@half_dreamy1008 жыл бұрын
Thank you Sir, these vedio help me a lot
@IamJ____0001 Жыл бұрын
sir plz make new series for java .........
@DurgaSoftwareSolutions Жыл бұрын
Hello Jishan. Plz contact our online team durgasoftonlinetraining@gmail.com or call us on this number +918885252627, 7207212427/28
@Rohtube6 жыл бұрын
Collection.sort(MyList); in MyList list, there are object of class Student. Class student have two fields, Name and ID If we dont specify the comparator, what will be the sorting order for that list ? will it be sorted on name or ID ??
@valajagdish104910 жыл бұрын
i salute you.
@DurgaSoftwareSolutions9 жыл бұрын
vala jagdish 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
@ankitsharma2k20098 жыл бұрын
please upload map concepts sir. Thank you
@jvsnyc4 жыл бұрын
They give you so much free stuff it is really hard to find it all, isn't it? kzbin.info/www/bejne/poSqp5WAbKx9bJo
@valajagdish104910 жыл бұрын
you are really genius.
@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
@DurgaSoftwareSolutions9 жыл бұрын
Durga Software Solutions View 9 videos on ENUM, kzbin.info/www/bejne/imLJfoqtfp53Z6c View 16 videos on Serialization, kzbin.info/www/bejne/mHrdl6Wsmdlqp68
@vamshikrishna2988 жыл бұрын
sir where is the maps concepts
@ranjithrao38359 жыл бұрын
good
@avinashkumargond329110 ай бұрын
Sir, I am using java 11 and I can see StringBuffer and StringBuilder implements Comparable, so now adding of stringBuffer object will work naa?
@DurgaSoftwareSolutions10 ай бұрын
Hello Avinash. Plz contact our online team durgasoftonlinetraining@gmail.com or call us on this number +918885252627, 7207212427/28