Video není dostupné.
Omlouváme se.

HashSet (Collection Framework)

Sdílet
Vložit
  • čas přidán 7. 03. 2014
  • This Video explains Core Java - Collection Framework | HashSet. Training Tutorial delivered by our Trainer Durga Sir.
    For more details visit : bit.ly/2d8XIN9
    DURGASOFT is INDIA's No.1 Software Training Center
    Trainer Name : Mr.Durga
    Course : Core Java
    Topic : HashSet
    Methods of Training : Inclass, Online, Video based training
    Location : 2nd Floor, Canara Bank Building, S.R Nagar, Hyderabad-500032
    Contact Phone : +91-8885252627,+91-7207212428,+91-7207212427, (US)+1-(443) 332-6786
    Email : Durgasoftonlinetraining@gmail.com, Info@Durgasoftonline.com
    Other Courses We Offered :
    JAVA, OCJP/SCJP, .NET , ANDROID, HADOOP, TESTING TOOLS , ADF, INFORMATICA, TABLEAU, IPHONE, OBIEE, ANJULAR JS, SAP,etc.
    Enjoy and stay connected with us!!
    ►Subscribe us on CZcams: goo.gl/drpxPQ
    ►Like us: / durgasoftonline
    ►Follow us: / durgasoftonline
    ►Circle us: plus.google.co...
    © 2016 Durga Software Solutions Pvt Ltd.

Komentáře • 106

  • @MadForCs16
    @MadForCs16 Před 3 lety +23

    This guy never disappoints.

  • @saifhaidri5152
    @saifhaidri5152 Před 9 lety +4

    Durga Sir, one thing i will definitely comment, i have seen most of your collection videos and the way you have explained the concepts with example on such tough topics collections made me very easy to understand. The way you explained conceptually every topics is amazing. Thank you so much sir. If possible please put one video on Hashcode() and equal method () importance and differences. I have seen others video on this topic but not at all clear.

  • @abhisheksarkar9182
    @abhisheksarkar9182 Před 5 lety +4

    Hi Sir, HashSet will be heterogeneous only when we don't provide Generic with it. In that case ArrayList, LinkedList all can be heterogeneous if we don't use Generic. And using collection without generic in a project will lead to this warning "Type safety: The method add(Object) belongs to the raw type HashSet. References to generic type HashSet should be parameterized".

  • @poornisridhar270
    @poornisridhar270 Před 4 lety +2

    Sir thank you so much I am new to java ur explanations are very easy to understand. Even I saw lot of concepts but not understandable

  • @ArjunSingh-is1bg
    @ArjunSingh-is1bg Před 3 lety +3

    JAVA King DurgaSir

  • @atulrulers
    @atulrulers Před 4 lety +6

    Just a suggestion. Subtitle will help a lot.

  • @mayurm9328
    @mayurm9328 Před 3 lety +2

    Mr. Java

  • @javascriptwar9525
    @javascriptwar9525 Před 5 lety +3

    🙏😢Awesome sir ...
    You make it easy..
    ❤no word to say ...

  • @mohammadmunshi8245
    @mohammadmunshi8245 Před 7 lety

    Way of Explanation is Wonderfull !

  • @sarbeshkumarsingh1328
    @sarbeshkumarsingh1328 Před 6 lety

    Best teaching style............. Thanks Alote.....................

  • @DineshMallee
    @DineshMallee Před 7 lety +1

    Concept explanation is awesome. Thanks.
    :)

  • @sandeepkiran8039
    @sandeepkiran8039 Před 7 lety

    thanks sir for giving valuable classes @ free...

  • @rushikumarn4394
    @rushikumarn4394 Před 9 lety +1

    hello sir, your classes are excellent but if u upload the remaining map and queue videos also it will be very beneficial for us

  • @ananthagadi1052
    @ananthagadi1052 Před 7 lety +3

    You are doing good sir, Please correct for people, who are following you. Underlining data structure is HashMap not Hashtable.

    • @RishabhRJ04
      @RishabhRJ04 Před 5 lety

      Your comment is wrong. Underlying data structure for HashSet is Hashtable not Hashmap. As it implements the Set Interface, duplicate values are not allowed. Objects that you insert in HashSet are not guaranteed to be inserted in same order. Objects are inserted based on their hash code.

  • @sandromartins3579
    @sandromartins3579 Před 9 lety +13

    The accent was too strong, so had to pay very close attention on the english part, but the explanation was very good! Thanks.

    • @thevagabond85yt
      @thevagabond85yt Před 9 lety +9

      I appreciate you for not using bad words. He is from south India and people there find it hard to pronounce the correct way. Some british and EU ppl use bad words to express there hatred for bad accent and ignore the effort in teaching stuff.

    • @vijaygmaster
      @vijaygmaster Před 9 lety

      tHe_VaGaBonD ....yes man...even I m happy...he has explained very nicely...

    • @viksam009
      @viksam009 Před 7 lety +2

      People in South speak English quite nicely and only few who come from smaller towns talk like this. I dont mean to offend the teacher because he is teaching well but just saying based on what I've seen. I have seen people speak English worse than this in North. Outside big cities like Delhi, North Indians speak English quite poorly with an ugly accent whereas most people in South can speak basic English.

    • @fortunespirit
      @fortunespirit Před 5 lety

      English is his third language. so ups and downs are natural. teaching on the other hand is the best

    • @aditchauhan876
      @aditchauhan876 Před 5 lety +1

      At best he is not adding fake accent. He is natural with a immense knowledge.

  • @gauravsharma-oj2dz
    @gauravsharma-oj2dz Před 4 lety +2

    Hi Sir,
    Thanks for providing high-quality learning resources. You teach really well.
    I have one question like in an ArrayList after 100% capacity reached new ArrayList is created, similarly, if we create a HashSet with an initial capacity of 10 when the new HashSet will get created i.e when inserting 8th element or after inserting 7th element.

    • @DurgaSoftwareSolutions
      @DurgaSoftwareSolutions  Před 4 lety

      Hello Gaurav.
      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

    • @venkatachaitanyayadla1794
      @venkatachaitanyayadla1794 Před 3 lety

      I think after trying to insert 8th element

  • @harendrayegr
    @harendrayegr Před rokem +1

    in the example of hashset , i have to use javac -xlint

  • @last_theorem
    @last_theorem Před 5 lety +2

    How does the the hash set extend there field. In the case of arraylist all the data is transferred to a newly formed big fields ,what procedure is followed in the hashset.

    • @DurgaSoftwareSolutions
      @DurgaSoftwareSolutions  Před 5 lety

      Hello Nibin.
      Plz contact our online team durgasoftonlinetraining@gmail.com or call us on this number +918885252627,7207212427/28

  • @top5things968
    @top5things968 Před rokem +1

    Than k you Durga sir

  • @prajyotbhatkar4776
    @prajyotbhatkar4776 Před 4 lety +2

    I want to know Sir you are saying that new HashSet is created when 75% of 1st HashSet is filled but what is the size of new HashSet?? Is there any rule/formula to calculate size of new HashSet?

    • @DurgaSoftwareSolutions
      @DurgaSoftwareSolutions  Před 4 lety

      Hello Prajyot.
      Plz contact our online team durgasoftonlinetraining@gmail.com or call us on this number +918885252627, 7207212427/28

    • @kavyag6485
      @kavyag6485 Před 4 lety +1

      It gets doubled each time whenever it is completely loaded...I.e., 16,32,64.....

  • @pavankumar0425
    @pavankumar0425 Před 7 lety

    Awesome Explanation ... Thanks a lot .... please let us know if you have anything in C# side or C++

  • @AshishPai1
    @AshishPai1 Před 8 lety +2

    What is the meaning of underlying datastructure for HashSet is hashtable?

  • @parasmani8514
    @parasmani8514 Před 6 lety +1

    'null' insertion is not allowed in Hashtable but it is allowed in HashMap.

  • @rexsam3134
    @rexsam3134 Před 3 lety +3

    Better run example using Eclipse and show the hash details

  • @srigowtham1446
    @srigowtham1446 Před 9 lety +2

    Load factor is about when will be new HashSet will be created?
    but
    what will be the new capacity?

    • @Bigdaddy91982
      @Bigdaddy91982 Před 6 lety

      'The initial capacity of HashSet is 16. When the load factor (0.75) is reached, i.e. 16 * 0.75 = 12; on the insertion of the 12th element the capacity is doubled, i.e. it becomes 32.'

  • @BISWAJITSAHUshe
    @BISWAJITSAHUshe Před 7 lety

    Very nicely explained

  • @sudihits2430
    @sudihits2430 Před 7 lety

    Very good explanation

  • @Ranjithreddysamrat
    @Ranjithreddysamrat Před 9 lety +1

    Sir, We use Arraylist for frequent retrial because its implements RandomAcccess. then why we use hash set for frequent retrial which will not implement Random access...

    • @DurgaSoftwareSolutions
      @DurgaSoftwareSolutions  Před 9 lety

      Ranjith reddy
      View 42 videos on Collections in Java,
      czcams.com/video/rI3VkItC0eA/video.html
      View 5 videos on JSF,
      czcams.com/video/rAa1wwWLw1Y/video.html
      View 50 videos on Oracle,
      czcams.com/video/pX5WJctn3Kw/video.html
      View 35 videos on Hibernate,
      czcams.com/video/SZ8abQ3vmdc/video.html
      View 115 videos on Data Structures,
      czcams.com/video/oAAiBQFSEik/video.html
      View 58 videos on Struts,
      czcams.com/video/nYqsnrHGsQg/video.html
      View 74 videos on Spring,
      czcams.com/video/YpsFT50mths/video.html
      View 41 videos on CRT,
      czcams.com/video/fDRnKPyvR14/video.html
      View 12 videos on JAVA Reflections API & Annotations
      czcams.com/video/BxCw0uTxZRs/video.html
      View 39 videos on Java Real Time Project Implementation on Spring,Struts & Hibernate,
      czcams.com/video/iKnb0AgKZJ0/video.html

    • @DurgaSoftwareSolutions
      @DurgaSoftwareSolutions  Před 9 lety

      Durga Software Solutions
      View 9 videos on ENUM,
      czcams.com/video/T1fMWwI9D1E/video.html
      View 16 videos on Serialization,
      czcams.com/video/bIzfrvdt7qM/video.html

    • @Bigdaddy91982
      @Bigdaddy91982 Před 6 lety

      following

  • @manishsultanpure639
    @manishsultanpure639 Před 3 lety +1

    sir it is not giving false. If values are same so .Only it is ignoring that.

  • @GauravKawatrakir
    @GauravKawatrakir Před 8 lety

    awesome tutorials....underlying data structure of hashset is hashTable as sir said in video but when i google it every where i find internal implementation of hashset is hashmap. so it becomes bit confusing. which one is underlying data structire please clarify as soon as possible.

    • @Bigdaddy91982
      @Bigdaddy91982 Před 6 lety

      hashmap indeed. 'This class implements the Set interface, backed by a hash table (actually a HashMap instance). It makes no guarantees as to the iteration order of the set; in particular, it does not guarantee that the order will remain constant over time. This class permits the null element.'

  • @saipavan6562
    @saipavan6562 Před 10 lety +3

    sir,
    if load factor is 0.75 and initial capacity is 16.
    After inserting 12 elements what will be the new Capacity?
    i mean how it grows further?

  • @Sandhyaauti
    @Sandhyaauti Před 3 lety +2

    Hello sir, is ppt available for whole collection Framework playlist ?

    • @DurgaSoftwareSolutions
      @DurgaSoftwareSolutions  Před 3 lety

      Hello Sandhya.
      Plz contact our online team durgasoftonlinetraining@gmail.com or call us on this number +918885252627, 7207212427/28

  • @pal0106
    @pal0106 Před 10 lety

    what is the size ratio with which the object will be recreated after the max capacity is reached? like for arraylist , the new size of arraylist is 3/2*originalSize +1

    • @renjithr7676
      @renjithr7676 Před 5 lety

      The size will double . czcams.com/video/fSjxhOYPBRI/video.html

  • @brajasekhar6238
    @brajasekhar6238 Před 3 lety +1

    Which method is used to find the default capacity in hashset?

    • @DurgaSoftwareSolutions
      @DurgaSoftwareSolutions  Před 3 lety

      Hello Raja Sekhar.
      Plz contact our online team durgasoftonlinetraining@gmail.com or call us on this number +918885252627, 7207212427/28

  • @aanu9402
    @aanu9402 Před 8 lety

    Hi Sir,can you please tell me how hashset internally work in java that video please

  • @akshatakabeer7794
    @akshatakabeer7794 Před 7 lety

    very nice sir..

  • @krishnavenibr183
    @krishnavenibr183 Před 5 lety +3

    How to find first and last element in hashset sir. Is there any predefined method.

    • @WonderfulSound8
      @WonderfulSound8 Před 4 lety

      I think if we can iterate over iterator, so maybe no, because iterator has only next method

  • @kasuvenkateshwarreddy8469

    This is his native prononce .new capacity is 16 while debug time u can find out

  • @gnanendrachowdary480
    @gnanendrachowdary480 Před 6 lety

    What is meant by underline data structure and hash code????

  • @DharmendraKumar-ut2bn
    @DharmendraKumar-ut2bn Před 10 lety

    superb video sir....

    • @DurgaSoftwareSolutions
      @DurgaSoftwareSolutions  Před 9 lety

      Dharmendra Kumar
      View 42 videos on Collections in Java,
      czcams.com/video/rI3VkItC0eA/video.html
      View 5 videos on JSF,
      czcams.com/video/rAa1wwWLw1Y/video.html
      View 50 videos on Oracle,
      czcams.com/video/pX5WJctn3Kw/video.html
      View 35 videos on Hibernate,
      czcams.com/video/SZ8abQ3vmdc/video.html
      View 115 videos on Data Structures,
      czcams.com/video/oAAiBQFSEik/video.html
      View 58 videos on Struts,
      czcams.com/video/nYqsnrHGsQg/video.html
      View 74 videos on Spring,
      czcams.com/video/YpsFT50mths/video.html
      View 41 videos on CRT,
      czcams.com/video/fDRnKPyvR14/video.html
      View 12 videos on JAVA Reflections API & Annotations
      czcams.com/video/BxCw0uTxZRs/video.html
      View 39 videos on Java Real Time Project Implementation on Spring,Struts & Hibernate,
      czcams.com/video/iKnb0AgKZJ0/video.html
      View other videos on ADV JAVA
      czcams.com/video/83jLqTAbqQU/video.html

    • @DurgaSoftwareSolutions
      @DurgaSoftwareSolutions  Před 9 lety

      Durga Software Solutions
      View 9 videos on ENUM,
      czcams.com/video/T1fMWwI9D1E/video.html
      View 16 videos on Serialization,
      czcams.com/video/bIzfrvdt7qM/video.html

  • @aditay7538
    @aditay7538 Před 7 lety

    sir u r great

  • @mittapallihareesh1703
    @mittapallihareesh1703 Před 7 lety

    I am using default load factor 0.75, and it reaches now new Hashset will be created , What is size of new Hashset ?
    Any formula is there to found ?

    • @Bigdaddy91982
      @Bigdaddy91982 Před 6 lety

      'The initial capacity of HashSet is 16. When the load factor (0.75) is reached, i.e. 16 * 0.75 = 12; on the insertion of the 12th element the capacity is doubled, i.e. it becomes 32.'
      REPLY

  • @SwaroopKumarNallagalv
    @SwaroopKumarNallagalv Před 10 lety +2

    plz add remaining videos of collections also...

  • @sakshamapuri5517
    @sakshamapuri5517 Před 6 lety

    Please have a tutorial for concurrent hashmap

  • @abhay11121988
    @abhay11121988 Před 10 lety

    Sir underlying data structure for HashSet is HashMap .
    Please correct me if I am wrong

    • @abhay11121988
      @abhay11121988 Před 10 lety

      Because Hashtable doesn't allow null value.

    • @DurgaSoftwareSolutions
      @DurgaSoftwareSolutions  Před 10 lety +3

      yes underlying Data Structure for HashSet is HashMap but HashMap is internally implemented by using Hashtable only.
      Thats why in general we consider underlying data structure for both HashSet and HashMap is Hashtable.

    • @abhay11121988
      @abhay11121988 Před 10 lety

      Thank u sir

    • @vijaygmaster
      @vijaygmaster Před 9 lety

      Durga Software Solutions thanks a lot...even I was thinking d same...how come Durga sir can do mistake...

  • @akashkharat2946
    @akashkharat2946 Před 8 lety +1

    whats the new capacity of new hashset that you not specify

    • @Bigdaddy91982
      @Bigdaddy91982 Před 6 lety +3

      'The initial capacity of HashSet is 16. When the load factor (0.75) is reached, i.e. 16 * 0.75 = 12; on the insertion of the 12th element the capacity is doubled, i.e. it becomes 32.'
      REPLY

  • @somdevbasu3879
    @somdevbasu3879 Před 5 lety +3

    FOR QUICK OVERVIEW:(these are timestamps)
    2:57
    7: 46
    14:27
    17:25

  • @ravinasomvanshi6844
    @ravinasomvanshi6844 Před 7 lety

    Hello Sir..could you tell us how to find capacity of HashSet(Not size of HashSet) ...Also after0.75% fill ratio of how much capacity new HasSet gets created?

    • @abhidita143
      @abhidita143 Před 7 lety +1

      go to paid tutorial!!!

    • @Bigdaddy91982
      @Bigdaddy91982 Před 6 lety

      'The initial capacity of HashSet is 16. When the load factor (0.75) is reached, i.e. 16 * 0.75 = 12; on the insertion of the 12th element the capacity is doubled, i.e. it becomes 32.'
      REPLY

  • @ccubecreations6887
    @ccubecreations6887 Před 3 lety +1

    What about new Capacity formula

    • @DurgaSoftwareSolutions
      @DurgaSoftwareSolutions  Před 3 lety

      Hello Friend.
      Plz contact our online team durgasoftonlinetraining@gmail.com or call us on this number +918885252627, 7207212427/28

  • @TravelWorld1
    @TravelWorld1 Před 9 lety

    Good video

  • @srikanthadani8224
    @srikanthadani8224 Před 8 lety

    sir please upload Hashtable video

  • @shashikantadandasena9796

    sir please guide me on hashtable or upload video for hashtable..

    • @DurgaSoftwareSolutions
      @DurgaSoftwareSolutions  Před 9 lety

      *****
      Demo Sessions on youtube,
      Language Fundamentals(16 Videos)czcams.com/video/eTXd89t8ngI/video.html,
      Operators & Assignments(7 Videos)czcams.com/video/1JGOPhIyhAM/video.html,
      Flow Control(6 Videos)czcams.com/video/X6rS9vD9-qM/video.html.

  • @mohdrafi7672
    @mohdrafi7672 Před 6 lety

    this video is good bcz less timing video

  • @CprkMagicMoves
    @CprkMagicMoves Před 9 lety

    Thank you sir.. and can you possible to upload java.util.concurrent package? Some people asked in interview room.. I want more knowledge on concurrent package sir..

    • @DurgaSoftwareSolutions
      @DurgaSoftwareSolutions  Před 9 lety

      Chiguru Praveenkumar
      View other videos on Collections in Java
      and click the below link
      czcams.com/video/rI3VkItC0eA/video.html

    • @DurgaSoftwareSolutions
      @DurgaSoftwareSolutions  Před 9 lety

      Durga Software Solutions
      View 9 videos on ENUM,
      czcams.com/video/T1fMWwI9D1E/video.html
      View 16 videos on Serialization,
      czcams.com/video/bIzfrvdt7qM/video.html

    • @DurgaSoftwareSolutions
      @DurgaSoftwareSolutions  Před 9 lety

      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)czcams.com/video/eTXd89t8ngI/video.html
      2. Operators & Assignments(7 Videos)czcams.com/video/1JGOPhIyhAM/video.html
      3. Flow Control(6 Videos)czcams.com/video/X6rS9vD9-qM/video.html
      durgasoft.com
      durgasoftonlinetraining.com
      facebook.com/durgasoftware
      durgajobs.com
      facebook.com/durgajobsinfo

  • @muhammedbasuney
    @muhammedbasuney Před 9 lety

    how to treat with equal and hashcode methods
    in hashset when the duplicate occur in hashset program
    like this example ..
    package collectionns;
    import java.util.HashSet;
    public class hashseterror {
    String language;
    int year;
    public hashseterror(String adress, int age) {
    this.language = adress;
    this.year = age;
    }
    public String toString() {
    return language + " " + year;
    }
    public static void main(String[] args) {
    HashSet hash = new HashSet();
    hash.add(new hashseterror("java", 2015));
    hash.add(new hashseterror("java", 2015));
    System.out.println(hash);
    }
    }
    please explain video to treat with this error

  • @kartikn1619
    @kartikn1619 Před 8 lety

    please upload java applet videos

  • @nstha8848
    @nstha8848 Před 8 lety

    but you never talked about how or why it is best for search operation ?
    I was expecting something about it....

    • @bharaniakella7734
      @bharaniakella7734 Před 7 lety

      Because hashing techniques have O(1) time complexity for their search operation.

  • @kensplanet
    @kensplanet Před 9 lety

    nice tutorial :)

    • @DurgaSoftwareSolutions
      @DurgaSoftwareSolutions  Před 9 lety

      Kenneth John
      View 42 videos on Collections in Java,
      czcams.com/video/rI3VkItC0eA/video.html
      View 5 videos on JSF,
      czcams.com/video/rAa1wwWLw1Y/video.html
      View 50 videos on Oracle,
      czcams.com/video/pX5WJctn3Kw/video.html
      View 35 videos on Hibernate,
      czcams.com/video/SZ8abQ3vmdc/video.html
      View 115 videos on Data Structures,
      czcams.com/video/oAAiBQFSEik/video.html
      View 58 videos on Struts,
      czcams.com/video/nYqsnrHGsQg/video.html
      View 74 videos on Spring,
      czcams.com/video/YpsFT50mths/video.html
      View 41 videos on CRT,
      czcams.com/video/fDRnKPyvR14/video.html
      View 12 videos on JAVA Reflections API & Annotations
      czcams.com/video/BxCw0uTxZRs/video.html
      View 39 videos on Java Real Time Project Implementation on Spring,Struts & Hibernate,
      czcams.com/video/iKnb0AgKZJ0/video.html
      View other videos on ADV JAVA
      czcams.com/video/83jLqTAbqQU/video.html

    • @DurgaSoftwareSolutions
      @DurgaSoftwareSolutions  Před 9 lety

      Durga Software Solutions
      View 9 videos on ENUM,
      czcams.com/video/T1fMWwI9D1E/video.html
      View 16 videos on Serialization,
      czcams.com/video/bIzfrvdt7qM/video.html

  • @Nitinkandwal
    @Nitinkandwal Před 8 lety

    What is hashCode?

    • @KhalidRiaz
      @KhalidRiaz Před 7 lety

      Its a numerical number to identify an instance/object, you can acquire it by calling Object.GetHashCode() method (C#).

  • @sparkycloud1514
    @sparkycloud1514 Před 2 lety +1

    Naaaaat allowwweddd....mmmmm