Core Java With OCJP/SCJP: Collections Part-14 || hashtable

  Рет қаралды 221,647

Durga Software Solutions

Durga Software Solutions

Күн бұрын

Пікірлер: 112
@KarthikC-ju4fx
@KarthikC-ju4fx Жыл бұрын
Thank you Durga sir.
@dipalisoniofficial
@dipalisoniofficial 3 жыл бұрын
I never had known such a beautiful concept.... thank you so much for your efforts..May God bless you with good health
@DurgaSoftwareSolutions
@DurgaSoftwareSolutions 3 жыл бұрын
Hello Soni. Thanks for your valuable feedback. It will boost us to do new things. Please subscribe to get updates about new videos. You can view all other Core Java with SCJP/OCJP Videos by Durga sir in the following link: goo.gl/kqvaf2
@haykmkrtchyan7093
@haykmkrtchyan7093 5 жыл бұрын
In my entire career I didn't see such an excellent explanation ever. Thank you sir.
@DurgaSoftwareSolutions
@DurgaSoftwareSolutions 5 жыл бұрын
Hello Hayk Mkrtchyan. Thanks for your valuable feedback. It will boost us to do new things. Please subscribe to get updates about new videos. You can view all other Core Java with SCJP/OCJP Videos by Durga sir in the following link: goo.gl/kqvaf2
@EngineerVaibhav
@EngineerVaibhav Жыл бұрын
149 video completed❤🎉
@shivansugiri3110
@shivansugiri3110 3 жыл бұрын
Sir your God of Java. Your name really suits, Durga maa is deity of Power you are deity of Java. Lots of love from Assam
@DurgaSoftwareSolutions
@DurgaSoftwareSolutions 3 жыл бұрын
Hello Giri. Thanks for your valuable feedback. It will boost us to do new things. Please subscribe to get updates about new videos. You can view all other Core Java with SCJP/OCJP Videos by Durga sir in the following link: goo.gl/kqvaf2
@ankitchauhan7104
@ankitchauhan7104 4 жыл бұрын
Hashtable : 0:10 Properties : 49:00
@skysefall7976
@skysefall7976 2 жыл бұрын
0:00 - Hashtable. 49:00 - properties.
@utsavmodh9698
@utsavmodh9698 8 ай бұрын
Wonderful content,always delighted to watch 🎉your video.
@DurgaSoftwareSolutions
@DurgaSoftwareSolutions 8 ай бұрын
Hello Utsav. Thanks for your valuable feedback. It will boost us to do new things. Please subscribe to get updates about new videos. You can view all other Core Java with SCJP/OCJP Videos by Durga sir in the following link: goo.gl/kqvaf2
@sarbeshkumarsingh1328
@sarbeshkumarsingh1328 7 жыл бұрын
one of the best teachers.................
@kamalapuramsivasankar7
@kamalapuramsivasankar7 11 ай бұрын
Thanks sir..
@sanpanchapakesan7654
@sanpanchapakesan7654 6 жыл бұрын
Super knowledge Mr Durga. the Hashtable example I get a different output for the same program. My output is, {23=E, 5=A, 15=D, 16=F, 2=B, 6=C}
@DurgaSoftwareSolutions
@DurgaSoftwareSolutions 6 жыл бұрын
Hello San. Thanks for your valuable feedback. It will boost us to do new things. Please subscribe to get updates about new videos. Plz contact our online team durgasoftonlinetraining@gmail.com or call us on this number +918885252627,7207212427/28
@yankiboy7519
@yankiboy7519 5 жыл бұрын
maybe this code can help u more to understand insertion Hashtable ht = new Hashtable(); ht.put(2,"a"); ht.put(3,"i"); ht.put(4,"f"); ht.put(5,"z"); System.out.println(ht.get(2).hashCode() % 11); System.out.println(ht.get(3).hashCode() % 11); System.out.println(ht.get(4).hashCode() % 11); System.out.println(ht.get(5).hashCode() % 11); System.out.println(ht); output is : 9 6 3 1 {5=z, 4=f, 3=i, 2=a}
@ranveervaghela7030
@ranveervaghela7030 2 ай бұрын
Completed watching on Oct 10, 2024 at 3.49 PM :) :)
@srinivasaraovukkum7810
@srinivasaraovukkum7810 3 жыл бұрын
Durga team...please you make precise videos of core java just like enum videos...so that we can complete more concepts....
@ashutoshbhardwaj8001
@ashutoshbhardwaj8001 3 жыл бұрын
Sir it is request from whole world , please make videos on spring framework
@DurgaSoftwareSolutions
@DurgaSoftwareSolutions 3 жыл бұрын
Hello Ashutosh. Plz contact our online team durgasoftonlinetraining@gmail.com or call us on this number +918885252627, 7207212427/28
@tejasmendhule1441
@tejasmendhule1441 2 жыл бұрын
god of java🙏🏻✌🏻
@DurgaSoftwareSolutions
@DurgaSoftwareSolutions 2 жыл бұрын
Hello Friend. Thanks for your valuable feedback. It will boost us to do new things. Please subscribe to get updates about new videos. You can view all other Core Java with SCJP/OCJP Videos by Durga sir in the following link: goo.gl/kqvaf2
@sambhasin4
@sambhasin4 5 жыл бұрын
Superb Explanation.....
@DurgaSoftwareSolutions
@DurgaSoftwareSolutions 5 жыл бұрын
Hello Sumit. Plz contact our online team durgasoftonlinetraining@gmail.com or call us on this number +918885252627, 7207212427/28
@faizanali273
@faizanali273 5 жыл бұрын
sir, how can we praise you?? bcz your just amazing superb
@DurgaSoftwareSolutions
@DurgaSoftwareSolutions 5 жыл бұрын
Hello Ali. Thanks for your valuable feedback. It will boost us to do new things. Please subscribe to get updates about new videos. You can view all other Core Java with SCJP/OCJP Videos by Durga sir in the following link: goo.gl/kqvaf2
@pranaychavan6951
@pranaychavan6951 4 жыл бұрын
Deepest Learning Ever
@DurgaSoftwareSolutions
@DurgaSoftwareSolutions 4 жыл бұрын
Hello Pranay. Thanks for your valuable feedback. It will boost us to do new things. Please subscribe to get updates about new videos. You can view all other Core Java with SCJP/OCJP Videos by Durga sir in the following link: goo.gl/kqvaf2
@for461
@for461 7 жыл бұрын
super explaination sir. It is internal working of hash map also
@amitasn1
@amitasn1 3 жыл бұрын
At 40:11 When you override hashcode() second time , why you didn't divide hashcode method's result by initial capacity of bucket?
@DurgaSoftwareSolutions
@DurgaSoftwareSolutions 3 жыл бұрын
Hello Amit. Plz contact our online team durgasoftonlinetraining@gmail.com or call us on this number +918885252627, 7207212427/28
@rkchauhan3493
@rkchauhan3493 3 жыл бұрын
Bcoz Inside hascode() Method Sir Return i%9. So Sir Divide the Value By 9. Simple
@sanjeevreddy3327
@sanjeevreddy3327 3 жыл бұрын
Amazing explanation thank you so much sir
@DurgaSoftwareSolutions
@DurgaSoftwareSolutions 3 жыл бұрын
Hello Sanjeev. Thanks for your valuable feedback. It will boost us to do new things. Please subscribe to get updates about new videos. You can view all other Core Java with SCJP/OCJP Videos by Durga sir in the following link: goo.gl/kqvaf2
@rizwanshahid1447
@rizwanshahid1447 7 жыл бұрын
Thanks so much, Durga Sir.
@MadhaviGavhane
@MadhaviGavhane 7 жыл бұрын
I like.... Your all videos
@2singam
@2singam 5 жыл бұрын
Thank you sir..!
@Skripturz
@Skripturz 6 жыл бұрын
are search and retrieval the same?
@shahzaibbaloch6140
@shahzaibbaloch6140 6 жыл бұрын
Just awesome
@DurgaSoftwareSolutions
@DurgaSoftwareSolutions 6 жыл бұрын
Hello Shahzaib Baloch. Thanks for your valuable feedback.It will boost us to do new things. Please subscribe to get updates about new videos. You can view all other Core Java with SCJP/OCJP Videos by Durga sir in the following link: goo.gl/kqvaf2
@Lakshmankablog
@Lakshmankablog 2 жыл бұрын
2022 👌🐎👍🤩🥳👏
@shahzaiblashari7250
@shahzaiblashari7250 6 жыл бұрын
superb
@swapnilzurange223
@swapnilzurange223 6 жыл бұрын
Hello Sir, very nice explanation. I want to know why Hashtable not allowing null key and value. can you explain please
@DurgaSoftwareSolutions
@DurgaSoftwareSolutions 6 жыл бұрын
Hello Swapnil. Thanks for your valuable feedback. It will boost us to do new things. Please subscribe to get updates about new videos. Plz contact our online team durgasoftonlinetraining@gmail.com or call us on this number +918885252627,7207212427/28
@poornimamedar2758
@poornimamedar2758 Жыл бұрын
Hello sir, I have one doubt that is Hashmap is implemented on top of hashtable then also it accept null value but where as in hashtable does not accept null key and value. Why Hashmap accept null??
@DurgaSoftwareSolutions
@DurgaSoftwareSolutions Жыл бұрын
Hello Friend. Plz contact our online team durgasoftonlinetraining@gmail.com or call us on this number +918885252627, 7207212427/28
@NoName-is9qv
@NoName-is9qv 5 ай бұрын
4:09 12:25 55:50 2:05
@jigneshparmar6481
@jigneshparmar6481 5 жыл бұрын
Very well explanation of hashtable but at the end you changed track over globalization which is not required for hashtable
@jvsnyc
@jvsnyc 4 жыл бұрын
I would say if people are going to watch this video at all, this is still important. For the most-part Hashtable is just a legacy class which can be mostly ignored, but Properties is still based on it, so I wouldn't complain about that part. It might be the last place you are using Enumeration, as well.
@akshada3334
@akshada3334 2 жыл бұрын
can any1 tell me why constructor is used here in internal hastable in temp class
@DurgaSoftwareSolutions
@DurgaSoftwareSolutions 2 жыл бұрын
Hello Akshada. Plz contact our online team durgasoftonlinetraining@gmail.com or call us on this number +918885252627, 7207212427/28
@DeepakSharma-gl2ng
@DeepakSharma-gl2ng 7 жыл бұрын
my ques is who will invoke hashcode method since its internally called by tostring method but u have overridden tostring also which is not invokeing hashcode method .... sir plzz do reply thank u
@vishalpanwar9550
@vishalpanwar9550 6 жыл бұрын
It is called by put method internally to find the bucket location.
@AmitSingh-dd4dt
@AmitSingh-dd4dt 4 жыл бұрын
If Hashtable does'nt implement Random Access, how it is good for search property?
@DurgaSoftwareSolutions
@DurgaSoftwareSolutions 4 жыл бұрын
Hello Amit. Plz contact our online team durgasoftonlinetraining@gmail.com or call us on this number +918885252627, 7207212427/28
@pranavhanwante5301
@pranavhanwante5301 4 жыл бұрын
Bro any update about this?
@rishipatel1989
@rishipatel1989 4 жыл бұрын
@@pranavhanwante5301 Although hashtable not having feature of random access, it finds value based on hash code so that's why it is good for search
@pranavhanwante5301
@pranavhanwante5301 4 жыл бұрын
@@rishipatel1989 ok, thanks for replying bro
@sudheertalluri6744
@sudheertalluri6744 6 жыл бұрын
Sir, I'm getting different output for the same Program.. And one more thing is does bucket contains key and value pair or only value if only value then how the program output has the same hashcode value that we entered instead of modular hashcode i.e. if we enter 33 as hashcode for capacity 11, then it is stored at bucket-2 and while it is printed then we are getting back 33 in output.. I will be greatful if get answers for these questions, Thank you sir..
@sudheertalluri6744
@sudheertalluri6744 6 жыл бұрын
My code: import java.util.*; class HashtableEx{ int i; HashtableEx(int i){ this.i =i; } public int hashcode(){ return i; } public String toString(){ return String.valueOf(i); } public static void main(String ar[]){ HashtableEx h1=new HashtableEx(5); HashtableEx h2=new HashtableEx(2); HashtableEx h3=new HashtableEx(6); HashtableEx h4=new HashtableEx(15); HashtableEx h5=new HashtableEx(23); HashtableEx h6=new HashtableEx(16); Hashtable H= new Hashtable(); H.put(h1,"A"); H.put(h2,"B"); H.put(h3,"C"); H.put(h4,"D"); H.put(h5,"E"); H.put(h6,"F"); System.out.println(H); } } My output: {6=C, 23=E, 2=B, 16=F, 15=D, 5=A}
@DurgaSoftwareSolutions
@DurgaSoftwareSolutions 6 жыл бұрын
Hello Sudheer. Plz contact our online team durgasoftonlinetraining@gmail.com or call us on this number +918885252627,7207212427/28
@shikharsaxena2566
@shikharsaxena2566 4 жыл бұрын
When I tried to execute the same program for HashMap I get the opposite order from what we get in HashTable..so can we conclude that Hashtable goes from Top to Bottom and Right to Left but HashMap goes from Bottom to Top and Left to Right..?? In all cases I got the same pattern for Hashtable and HashMap.
@DurgaSoftwareSolutions
@DurgaSoftwareSolutions 4 жыл бұрын
Hello Shikhar. Plz contact our online team durgasoftonlinetraining@gmail.com or call us on this number +918885252627, 7207212427/28
@rahulchowdhury4227
@rahulchowdhury4227 4 жыл бұрын
But I'm getting the same order Top to Bottom and Right to Left in case of HashMap too
@shikharsaxena2566
@shikharsaxena2566 4 жыл бұрын
@@rahulchowdhury4227 I don't know how you get the same output for HashMap..if it's possible then..share your gmail id I can share you the screenshot of my output which I am getting
@rahulchowdhury4227
@rahulchowdhury4227 4 жыл бұрын
Are you on Facebook?
@ahmidahmid9303
@ahmidahmid9303 5 жыл бұрын
thanks
@elitexmedia2899
@elitexmedia2899 2 жыл бұрын
Hashtable size is doubled after 11 capacity is reached?
@DurgaSoftwareSolutions
@DurgaSoftwareSolutions 2 жыл бұрын
Hello Friend. Plz contact our online team durgasoftonlinetraining@gmail.com or call us on this number +918885252627, 7207212427/28
@mohanrammanikandan7939
@mohanrammanikandan7939 3 жыл бұрын
Can anyone please explain my doubt with respect to the "hashCode()" method? In the below program, I have overridden "hashCode()" and "toString()" methods. why the "hasCide()" method is not called automatically? But in Durga sir's example program (starts from 16:00 to 25:00), the overridden hashcode() method was called automatically? Why so? What is the reason? Can someone please explain? Program: Class Test { int i = 10; psvm(String[] args) { Test T1 = new Test(); System.out.println(T1); } public String toString() { return i+" "; } public int hashCode() { return 200; } } Output: 10
@DurgaSoftwareSolutions
@DurgaSoftwareSolutions 3 жыл бұрын
Hello Mohanram. Plz contact our online team durgasoftonlinetraining@gmail.com or call us on this number +918885252627, 7207212427/28
@sainath292
@sainath292 2 жыл бұрын
@Mohanram......dear I am also having same doubt if we print S.O.Pln(t) internally object classto String() will be called then inside that Object class toString() by default hashcode() will be called ......but in this Temp from 16:00 code Temp class We overriden toString() ok when we call S.O.Pln(t); our class toString () will be called it's fine then how our overriden hashCode() will be called.?? ... sir could you please answer?? or MohanRam if u contacted could you please tell me??...let's catch up here how it is ??
@DineshHase
@DineshHase Жыл бұрын
Ideally, when u try to print a statement then only toString method will be called.In object class toString() method, hashCode is included.but In your program u return only i+" " .So it will return that only i.e. 10. In durga sir's example hashCode method is used to get hashcode to arrange entry in hashtable......
@mdwahid565
@mdwahid565 Жыл бұрын
Bahi Object class toString methods calls hashCode( which returns int value )and toString method turns hashCode value into hexadecimal form
@mdkamranansari4493
@mdkamranansari4493 2 жыл бұрын
sir while running program of all legacy classes of java collection always error are coming saying cannot find symbol sir how can i solve this problem
@DurgaSoftwareSolutions
@DurgaSoftwareSolutions 2 жыл бұрын
Hello Friend. Plz contact our online team durgasoftonlinetraining@gmail.com or call us on this number +918885252627, 7207212427/28
@xypq8310
@xypq8310 4 жыл бұрын
Is this used in real time java projects any more?
@DurgaSoftwareSolutions
@DurgaSoftwareSolutions 4 жыл бұрын
Hello S S. Plz contact our online team durgasoftonlinetraining@gmail.com or call us on this number +918885252627, 7207212427/28
@jvsnyc
@jvsnyc 4 жыл бұрын
No. You really should be considering this legacy only in case you see it in old code on a job.
@manishjaiswal7768
@manishjaiswal7768 5 жыл бұрын
Sir in hashtable if key is string type then how we can develop the program
@DurgaSoftwareSolutions
@DurgaSoftwareSolutions 5 жыл бұрын
Hello Manish. Plz contact our online team durgasoftonlinetraining@gmail.com or call us on this number +918885252627, 7207212427/28
@samudralasrinivas1809
@samudralasrinivas1809 2 жыл бұрын
sir, where i have to save the properties file
@DurgaSoftwareSolutions
@DurgaSoftwareSolutions 2 жыл бұрын
Hello Srinivas. Plz contact our online team durgasoftonlinetraining@gmail.com or call us on this number +918885252627, 7207212427/28
@suppu3053
@suppu3053 6 жыл бұрын
Hi sir! why is serialization topic not in serial? I mean they are like this: part 3,part2,part4,part5,part6,part7 and where is part1 sir?
@sanjaysinghsolanki2953
@sanjaysinghsolanki2953 6 жыл бұрын
nice sir
@DurgaSoftwareSolutions
@DurgaSoftwareSolutions 6 жыл бұрын
Hello Sanjay. Thanks for your valuable feedback.It will boost us to do new things. Please subscribe to get updates about new videos. You can view all other Core Java with SCJP/OCJP Videos by Durga sir in the following link: goo.gl/kqvaf2
@VivekPatel-qr2bb
@VivekPatel-qr2bb 5 жыл бұрын
sir pls open one branch in delhi
@poojagarg6979
@poojagarg6979 6 жыл бұрын
thank you ....
@DurgaSoftwareSolutions
@DurgaSoftwareSolutions 6 жыл бұрын
Hello Pooja. Thanks for your valuable feedback.It will boost us to do new things. Please subscribe to get updates about new videos. You can view all other Core Java with SCJP/OCJP Videos by Durga sir in the following link: goo.gl/kqvaf2
@soujanyaayachitula9253
@soujanyaayachitula9253 4 жыл бұрын
Sir, i am not getting same results for Hashtable . I am using java 13 .Are there any changes for java 13, Kindly Reply as i have an examination
@DurgaSoftwareSolutions
@DurgaSoftwareSolutions 4 жыл бұрын
Hello Soujanya. Plz contact our online team durgasoftonlinetraining@gmail.com or call us on this number +918885252627, 7207212427/28
@azriaalain2854
@azriaalain2854 6 жыл бұрын
Hi Sir, I have a small problem with your code. My output is identically the same with this code h.put(5,"A") h.put(2, "B") etc... but with your code i have {6 =C, 2 =B, 5 =A, 23 =E, 15 =D, 16 =F} Sorry but i don't understand. Ty.
@DurgaSoftwareSolutions
@DurgaSoftwareSolutions 6 жыл бұрын
Hello Alain. Plz contact our online team durgasoftonlinetraining@gmail.com or call us on this number +918885252627,7207212427/28
@MadhaviGavhane
@MadhaviGavhane 7 жыл бұрын
I want some basic programming as a fresher videos... Which are asked in interview. Can you please provide link to download this video? I am waiting for your reply
@DurgaSoftwareSolutions
@DurgaSoftwareSolutions 7 жыл бұрын
Hi Madhavi. plz contact our online team durgasoftonlinetraining@gmail.com or call us on this number +918885252627
@AnkitKumar-td8rc
@AnkitKumar-td8rc 13 күн бұрын
Completed P-14 today (D: 8/12/24 , 9:45 pm)
@nikhilarora3240
@nikhilarora3240 5 жыл бұрын
Hi sir, Thanks for providing such wonderful lectures. Sir I am getting different output while trying to print the Hashtable and it is like this :{5=A,23=E,15=D,16=F,6=C,2=B}
@DurgaSoftwareSolutions
@DurgaSoftwareSolutions 5 жыл бұрын
Hello Nikhil. Thanks for your valuable feedback. It will boost us to do new things. Please subscribe to get updates about new videos. Plz contact our online team durgasoftonlinetraining@gmail.com or call us on this number +918885252627, 7207212427/28
@gavravdhongadi9824
@gavravdhongadi9824 4 жыл бұрын
Check your hashCode method
@shristisrivastava4408
@shristisrivastava4408 3 жыл бұрын
Use method : hashCode() & not hashcode().
@remorajesh122
@remorajesh122 6 жыл бұрын
Initial capacity of treeset...pls tell.me sir...
@sandesh3487
@sandesh3487 5 жыл бұрын
treeset does not have any initial capacity because the underlying data structure is balanced binary tree.
@sairajnagabushan835
@sairajnagabushan835 4 жыл бұрын
When i Execute the Below Code i got some mismatch in expected and actual result, using 1.8 and Win 10, can any one help me in this. public class HashTebleDemo { public static void main(String[] args) { // TODO Auto-generated method stub Hashtable h = new Hashtable(); h.put(new Temp(10), "A"); h.put(new Temp(15), "B"); h.put(new Temp(16), "C"); h.put(new Temp(17), "D"); h.put(new Temp(18), "E"); System.out.println(h); } } class Temp { int i; public Temp(int i) { this.i = i; } public int hashcode() { return i; } public String toString() { return i + " "; } } Note Im Using 1.8 and Win 10 Pro. Actual O/p : {17 =D, 10 =A, 18 =E, 16 =C, 15 =B} Expected O/p : { 10 =A, 18 =E, 17 =D, 16 =C, 15 =B}
@DurgaSoftwareSolutions
@DurgaSoftwareSolutions 4 жыл бұрын
Hello Sairaj. Plz contact our online team durgasoftonlinetraining@gmail.com or call us on this number +918885252627, 7207212427/28
@GalaxyStriker619
@GalaxyStriker619 4 жыл бұрын
This is because u r using method name as hashcode.... However it should be hashCode .... Upper case C
@jvsnyc
@jvsnyc 4 жыл бұрын
@@GalaxyStriker619 This is why I am a fan of @Override annotation!
@priyankashaw1238
@priyankashaw1238 6 жыл бұрын
My output is {5=A, 23=E, 15=D, 16=F, 6=C, 2=B}. Can anybody help.
@DurgaSoftwareSolutions
@DurgaSoftwareSolutions 6 жыл бұрын
Hello Priyanka Shaw. Plz contact our online team durgasoftonlinetraining@gmail.com or call us on this number +918885252627,7207212427/28
@top5things968
@top5things968 2 жыл бұрын
Thank you so much Durga sir .
@UdayKumar-gu2sg
@UdayKumar-gu2sg 4 жыл бұрын
Is there any notes available from Durga sir
@DurgaSoftwareSolutions
@DurgaSoftwareSolutions 4 жыл бұрын
Hello Uday. Plz contact our online team durgasoftonlinetraining@gmail.com or call us on this number +918885252627, 7207212427/28
Core Java With OCJP/SCJP: Collections Part-15 || queue
57:26
Durga Software Solutions
Рет қаралды 170 М.
Core Java With OCJP/SCJP: Collections Part-13 || sortedmap
42:13
Durga Software Solutions
Рет қаралды 180 М.
BAYGUYSTAN | 1 СЕРИЯ | bayGUYS
36:55
bayGUYS
Рет қаралды 1,9 МЛН
1% vs 100% #beatbox #tiktok
01:10
BeatboxJCOP
Рет қаралды 67 МЛН
Learn Hash Tables in 13 minutes #️⃣
13:26
Bro Code
Рет қаралды 401 М.
Core Java With OCJP/SCJP: Collections Part-9 || comparator
1:04:58
Durga Software Solutions
Рет қаралды 252 М.
Core Java With OCJP/SCJP: Generics Part-1 || Introduction
44:31
Durga Software Solutions
Рет қаралды 197 М.
Core Java with OCJP/SCJP: Multi Threading Part-2 || The ways of defining a Thread Part-1
1:44:56
Differences between String  and StringBuffer
7:57
DURGA EDUCATION
Рет қаралды 547 М.
Core Java With OCJP/SCJP: Collections Part-17 || searching elements of list
59:35
Durga Software Solutions
Рет қаралды 127 М.