About java.lang.String, why String is special in java - String tutorial

แชร์
ฝัง
  • เผยแพร่เมื่อ 2 ม.ค. 2025

ความคิดเห็น • 144

  • @anandashok7301
    @anandashok7301 4 ปีที่แล้ว +13

    The best video on String Class. No one in the TH-cam has explained this way.

  • @freedomseeker9301
    @freedomseeker9301 2 ปีที่แล้ว +1

    Very confident, detailed , backed by coding , fluent and clean recording. An excellent work. People who saw this 7 years ago are very lucky. I just got it end of 2022.

  • @shankhashubhrasanyal5871
    @shankhashubhrasanyal5871 3 ปีที่แล้ว +2

    Explanation 🔥🔥

  • @sanjeetbehera5620
    @sanjeetbehera5620 2 ปีที่แล้ว

    Well.A genius at it's best..Great explanation

  • @lolxd3248
    @lolxd3248 4 ปีที่แล้ว +2

    I'm definitely looking forward to hearing new in-depth tutorials from you, man!

  • @peterPaul19783
    @peterPaul19783 4 ปีที่แล้ว

    Very good explanation. Thank you very much Sir.

  • @ReginaldOdhiambo
    @ReginaldOdhiambo 6 ปีที่แล้ว +4

    You are the best. Best String explanation ever.

  • @josephpudupermanil704
    @josephpudupermanil704 5 ปีที่แล้ว

    Very informative.. Really Great..

  • @jvsnyc
    @jvsnyc 4 ปีที่แล้ว

    I can totally see why people miss your videos. Very good.

  • @TechWithTarek
    @TechWithTarek 8 ปีที่แล้ว +4

    Amazing in depth tutorial of the String class. Need more tutorials like these!

  • @PoojaSharma-nr9by
    @PoojaSharma-nr9by 8 ปีที่แล้ว +36

    Please publish some videos on advance multi threading topic

    • @MrRicharddaniel
      @MrRicharddaniel 6 ปีที่แล้ว

      Yes Please we want multithreading

    • @lolxd3248
      @lolxd3248 4 ปีที่แล้ว

      I agree. I'd love to hear your explanations on multi-threading!

  • @venkaraj
    @venkaraj 9 ปีที่แล้ว +1

    Hi Ranjith,
    All your videos are well organized,precise and touch upon areas where generally there is some ambiguity in understanding.
    Your videos gives lot of clarity on so many areas which were hazy earlier.
    Thanks a lot for all your efforts and knowledge sharing.
    Someone rightly commented they are really addictive. I am in Tutorialthon with your channel.

  • @navneetkumar6538
    @navneetkumar6538 8 ปีที่แล้ว

    I am just zabra fan of you too much simplistic way to explain. Big salute to you.

  • @bimalroka7810
    @bimalroka7810 4 ปีที่แล้ว

    Precise explanation on String. Amazing! It's hard to find such videos.
    Thanks Ranjit.

  • @padmnabham
    @padmnabham 8 ปีที่แล้ว

    Very clear and neat explosion on string concept with simple example programs....

  • @popatkalushe1261
    @popatkalushe1261 4 ปีที่แล้ว

    Thanks you ! . Your explanation technique is just awesome.

  • @mohnishkamble
    @mohnishkamble 8 ปีที่แล้ว

    Thanks for sharing your knowledge and for time as well. Great explanation.

  • @ashoksrinivasan3384
    @ashoksrinivasan3384 6 ปีที่แล้ว

    Awesome... I've learned so mch tdy abt String.. It helps me a lot. Thanks....

  • @In10Frames
    @In10Frames 2 ปีที่แล้ว

    Really helpful videos. I think you should create more such videos :)

  • @mridulchoudhary3010
    @mridulchoudhary3010 3 ปีที่แล้ว

    Your way of explanation is awesome sir !!! Hope you start uploading such awesome content in future !

  • @sribalajirao
    @sribalajirao 8 ปีที่แล้ว

    cool video..crisp and clear..waiting for more videos from java guru..

  • @shitaln2496
    @shitaln2496 8 ปีที่แล้ว

    Beyond Appreciation!!! Thanks for sharing.

  • @LaurenLeung
    @LaurenLeung 9 ปีที่แล้ว +5

    all of your videos are so helpful! thank you for making these!

    • @wmj010cn
      @wmj010cn 9 ปีที่แล้ว

      +Lauren Leung do you know anything about the encoding stuff in java?

  • @fx_bias
    @fx_bias 8 ปีที่แล้ว +11

    Very nice video Ranjith . If possible, please make videos on serialization and multithreading and the insights which you think a java developer should know.
    Thanks a lot.

  • @vivekabalaiya1672
    @vivekabalaiya1672 6 ปีที่แล้ว

    Very important topic in JAVA, very well explained.

  • @krishnapodile
    @krishnapodile 8 ปีที่แล้ว

    Good Explanation Ranjith. This is one of the bet videos i have ever seen on String topic. Especially your explanation on memory leakage was superb. Waiting for more videos from you. Thank you very much.

  • @kartikeyachoudhary
    @kartikeyachoudhary 8 ปีที่แล้ว

    Very informative and clearly explained. I am new to Java and was totally able to understand how this was explained. Great Stuff. Keep posting more videos.

  • @vaibskinikar
    @vaibskinikar 8 ปีที่แล้ว

    Great videos! Your explanation is really easy to understand with examples. Looking forward to upcoming videos. Thanks for taking out time and making these. Really helpful

  • @abhiganta
    @abhiganta 3 ปีที่แล้ว

    Explained in the clearest way, I wonder why you stopped uploading videos..

  • @sanjaysingh1110
    @sanjaysingh1110 7 ปีที่แล้ว

    Very nicely explained :) One of the best explanations i have seen. please keep making more videos.

  • @MANJUBALASAHANA
    @MANJUBALASAHANA 6 ปีที่แล้ว

    Very clear explanation. Please make more videos on Java. It will be very helpful for many.

  • @dongerlin7589
    @dongerlin7589 7 ปีที่แล้ว

    Very useful and nice video, Ranjith. In depth tutorial.

  • @birdsonwheels4810
    @birdsonwheels4810 6 ปีที่แล้ว

    Best teacher for the java award goes to Ranjith...............Sir please add more videos

  • @reshmashanbhag1884
    @reshmashanbhag1884 9 ปีที่แล้ว

    Thank you Ranjith, very informative session on java.lang.String.

  • @z3t3tici
    @z3t3tici 8 ปีที่แล้ว

    i appreciate your all efforts in terms of sharing these knowledge based videos.
    Thanks a lot very helpful

  • @kiranhsmys
    @kiranhsmys 9 ปีที่แล้ว +1

    Thanks Ranjith. Very well explained . I apperciate your work.

  • @kumarsuresh98
    @kumarsuresh98 9 ปีที่แล้ว

    Excellent!!!! superb

  • @jaren2kilo
    @jaren2kilo 8 ปีที่แล้ว

    Excellent concise demo !

  • @nagarajanramalingam1199
    @nagarajanramalingam1199 7 ปีที่แล้ว

    Realy useful, Thanks.

  • @karthikph123
    @karthikph123 9 ปีที่แล้ว +1

    great video. Request to post many more such videos.

  • @NR-pf9zp
    @NR-pf9zp 8 ปีที่แล้ว

    Thanks for this awesome video! One of the best 39 minutes i have invested in my life. Keep up the great work :)

  • @ruchitaladha541
    @ruchitaladha541 6 ปีที่แล้ว

    Thanks for such a great explanation!!

  • @user029082
    @user029082 7 ปีที่แล้ว

    Awesome explanation.
    Keep posting.

  • @Radhakankanala
    @Radhakankanala 9 ปีที่แล้ว +2

    Great work Ranjith, the videos are really helpful, please make videos on other concepts as well.

  • @ramashan23
    @ramashan23 9 ปีที่แล้ว

    Your are Topics are really Insight full and very interesting , Getting addicted to more of you courses , Keep up the good work :-)

    • @ranjithramachandran5928
      @ranjithramachandran5928  9 ปีที่แล้ว

      +ramanathan shankar Thanks for the kind words! pls subscribe, I try to release at least 1 video in 2 weeks.

  • @naveens6868
    @naveens6868 8 ปีที่แล้ว

    Very nice videos ranjith. keep going.Looking forward to learn a lot from your videos.I would like to recommend your videos to my friends.

  • @ThePmaha
    @ThePmaha 7 ปีที่แล้ว

    Awesome Ranjith, your videos are so detail I am just loving it ...

  • @meekutelusaaa
    @meekutelusaaa 8 ปีที่แล้ว

    Ranjith,well explained..awaiting more videos from you..

  • @maheshdhanraj9899
    @maheshdhanraj9899 9 ปีที่แล้ว

    Hi Ranjith.. Good presentation. This video helped me to understand the String concepts.thanks a lot.

  • @sriramachaturvedula9048
    @sriramachaturvedula9048 8 ปีที่แล้ว

    Thanks Ranjith... like your style of presentation.

  • @krishnansblr
    @krishnansblr 8 ปีที่แล้ว

    Thanks Ranjith, I loved your video. It cleared lots of my confusions.

  • @prabhakaranc2576
    @prabhakaranc2576 8 ปีที่แล้ว

    Awesome Explanation :)

  • @rohitraja7716
    @rohitraja7716 8 ปีที่แล้ว

    Thanks Ranjith, I loved your video. It cleared lots of my confusions.
    The best part is the "Best Practice" you included. Please do include this part in you other videos as we generally lag in best practice.

  • @subhankarb100
    @subhankarb100 8 ปีที่แล้ว

    really great work...

  • @tulsidesai2976
    @tulsidesai2976 8 ปีที่แล้ว

    Your explanation is really great I appreciate your effort it is helpful to be clear with all minor details that JVM takes into consideration.Looking forward for Threads video from you

  • @ravipunia59
    @ravipunia59 9 ปีที่แล้ว +1

    Fantastic explanation. Waiting eagerly for your concurrency , exception handling and multi-threading videos.

    • @ranjithramachandran5928
      @ranjithramachandran5928  9 ปีที่แล้ว

      Ravi Punia thanks, planning videos in GC, concurrency etc in upcoming episodes, please stay tuned, subscribe to the channel- if you haven't already.

  • @benjaminalexander7043
    @benjaminalexander7043 5 ปีที่แล้ว

    Fantastic Tutorials!!! Really Helpful! Thanks! Will you be doing more of these?

  • @shailendrakumar8167
    @shailendrakumar8167 7 ปีที่แล้ว

    Really Helpful...

  • @mors6536
    @mors6536 8 ปีที่แล้ว

    Great explanation! Please make more videos :)

  • @toshi.j3159
    @toshi.j3159 7 ปีที่แล้ว

    Hello, your videos are really helpful . Please upload more !

  • @postflic1829
    @postflic1829 8 ปีที่แล้ว

    some latest thing i knew after video like scp in heap memory, memory leak better n good explanation

  • @lalatkishorechoudhur
    @lalatkishorechoudhur 9 ปีที่แล้ว

    Hi Ranjith sir,Excellent presentation.thank you..........

  • @josephpudupermanil704
    @josephpudupermanil704 8 ปีที่แล้ว

    Very Nice learning Ranjith. Excellent

  • @DineshSingh-dl7bc
    @DineshSingh-dl7bc 8 ปีที่แล้ว

    Really Helpful.. Please continue and make more videos for other concepts. Learning a lo from these

  • @sunainagandra2924
    @sunainagandra2924 7 ปีที่แล้ว

    can you please upload more videos...your videos are very usefull for beginners

  • @prakashm6084
    @prakashm6084 7 ปีที่แล้ว

    your teaching was super amazing very clear and in depth ...do make some videos on tricky java interview questions like
    1. FINDING WHITE SPACES IN A GIVEN SENTENCE
    2.FINDING NO OF DUPLICATE WORDS IN A SENTENCE
    3. AND SOME INTERSTING CONCEPTS USIGN ARRAYS..

  • @yaminimehta4575
    @yaminimehta4575 3 ปีที่แล้ว

    Great video!! Why have you stopped making more videos??

  • @shineblore7041
    @shineblore7041 8 ปีที่แล้ว

    Just love watching ur videos :)

  • @info2nagesh
    @info2nagesh 9 ปีที่แล้ว +2

    Thanks alot Ranjith. Your videos on java are awesome, not comparable to others.

  • @ThePriyeshchandra
    @ThePriyeshchandra 9 ปีที่แล้ว

    Hi Ranjith,
    Really nice tutorials. Would request you to upload videos on some advanced topics such as multithreading, database connectivity, and may be some tricky java interview questions. Thank you for the awesome work. Keep it up.

  • @devanathannarasimhan1410
    @devanathannarasimhan1410 8 ปีที่แล้ว

    amazing thanks Ranjit, if possible can you share the java collections videos?

  • @ShujathHussain0
    @ShujathHussain0 6 ปีที่แล้ว

    Awesome work. if you ever make a course please share a link, i'd love to buy

  • @harlemch6429
    @harlemch6429 9 ปีที่แล้ว

    It just awesome Ranjith, Thanks for presentation

  • @TheSaravkumar
    @TheSaravkumar 3 ปีที่แล้ว

    Unlike other videos, you have some originality in explaining without misleading the actual reasons. Good work !
    If password is stored in char[ ] array , heap dump will have that too, maybe the approach shortening the time, certainly better than storing it in String but still not ideal to store clear text in char array as well. Right ?

  • @sandipbhaumik
    @sandipbhaumik 7 ปีที่แล้ว

    If you can describe about the flyweight design pattern which has been implemented for java.lang.String, that would be great.

  • @kumar22bms
    @kumar22bms 9 ปีที่แล้ว

    Hi Ranjith, Excellent presentation keep it up.
    Am waiting for ur next GC video,please also provide, How to handle externally GC in java.
    HashMap explanation is supb

    • @ranjithramachandran5928
      @ranjithramachandran5928  9 ปีที่แล้ว

      Kumar Nagaraju Pls check out th-cam.com/video/UnaNQgzw4zY/w-d-xo.html - let me know if there are questions

  • @SushilKumarBhaskar
    @SushilKumarBhaskar 9 ปีที่แล้ว +2

    good one...

  • @kalidask2493
    @kalidask2493 9 ปีที่แล้ว

    superb explanation. Can you please add topics about concurrency , threads ,Security.

    • @ranjithramachandran5928
      @ranjithramachandran5928  9 ปีที่แล้ว

      kalidas k Thanks! yes, I am planning to put those out. Meanwhile please subscribe/check out other videos in my channel.

  • @jhguygih
    @jhguygih 6 ปีที่แล้ว

    Very good!!!!

  • @vlsnsatyas
    @vlsnsatyas 8 ปีที่แล้ว

    A very nice video. In the multithreading concept, Can you please explain why wait and notify methods present in object class but not in thread class

  • @LetsBeHuman
    @LetsBeHuman 6 ปีที่แล้ว

    man, why did you stopped making videos. Your videos are best.

  • @LetsBeHuman
    @LetsBeHuman 6 ปีที่แล้ว +1

    24:@2 - man, from where did you get the info such that substring has memory leak till java 1.7

  • @rahulsaini8
    @rahulsaini8 7 ปีที่แล้ว

    Nice explanation

  • @wmj010cn
    @wmj010cn 9 ปีที่แล้ว

    create,clearify what's been confusing!Would you cast some light on string encoding in java,such the getBytes[] method from String class

  • @vinodbhadu4576
    @vinodbhadu4576 7 ปีที่แล้ว

    Ranjith sir, you are awesome but why only few videos, please make videos on java 8.

  • @ashishagrawal7709
    @ashishagrawal7709 7 ปีที่แล้ว

    Its Amazing, pls provide some videos on ExecutorServices

  • @ManishTiwari22
    @ManishTiwari22 9 ปีที่แล้ว +2

    good job ranjith.

  • @nagarjunkalivarapu7966
    @nagarjunkalivarapu7966 7 ปีที่แล้ว

    nice explanation it's really very helpful for interviews and learning. do u have any site or blog if there please post the link here we can read .
    thank you

  • @ravikumarizaac
    @ravikumarizaac 9 ปีที่แล้ว +1

    Hi Ranjith..excellent presentation.. keep it up...one question is ... with 1.7 as string constant pool is moved from permgenspace to heap, will these string constants be garbage collectable? if so how the cache of the strings is maintained?

    • @ranjithramachandran5928
      @ranjithramachandran5928  9 ปีที่แล้ว +1

      Ravi Kumar , Yes Java 7 & 8 uses heap for String pool. At the same time,code objects(Byte code/compiled code) will contain one or more references to the String objects that represent the literals.So as long as the code objects are reachable, the String objects will be too - and hence it will not be garbage collected until the class that refers them itself is GC'd. The data structure that stores the pool is a map. I am planning a video on GC very soon, please subscribe for updates if you haven't already.

  • @user-mt2if1ht8n
    @user-mt2if1ht8n 3 ปีที่แล้ว

    Gold!

  • @yoganandraju5539
    @yoganandraju5539 2 ปีที่แล้ว

    Hello bro no videos for long time i seen all your videos will you post again shall we expect a new videos from you.

  • @johnwilson3918
    @johnwilson3918 6 ปีที่แล้ว

    Thank you - for this. You mentioned how a String's hashCode is cached once it has been 'interned' - but you've not mentioned how a check is done for a String existing on the current string pool. Doesn't this involve calculating some hash code?

  • @gaaliprabhakar8882
    @gaaliprabhakar8882 7 ปีที่แล้ว

    (Very nice)*1000 and if you have time please make a video on class loaders topic.
    Thank you so much

    • @ranjithramachandran5928
      @ranjithramachandran5928  7 ปีที่แล้ว

      Hope this will help th-cam.com/video/ZBJ0u9MaKtM/w-d-xo.html a little bit

    • @gaaliprabhakar8882
      @gaaliprabhakar8882 7 ปีที่แล้ว

      I have seen this tutorial before , but that not fully explanation about Class loader.

  • @kalyanraju37
    @kalyanraju37 9 ปีที่แล้ว

    I have one question wrt using new String(). As new String creation will not create anything in String pool instead it creates new object outside string pool correct. Then what is exact use of it?

  • @avinashnalam944
    @avinashnalam944 7 ปีที่แล้ว

    Hi Ranjith,
    I have a doubt on one statement that you have made - String "Caches the hashcodes". also mentioned that it will be helpful in HashMaps.
    Consider the following:
    String s1 = "Hello";
    String s2 = "Hey";
    String s3 = "Hello";
    Map m = new HashMap();
    m.put(s1, 1); // Here it computes the hashcode of s1 (lets say h1 ) and cached
    m.put(s2, 2); // Here it computes the hashcode of s2 (lets say h2) and cached
    now as per my understanding of your statement, if we try to do m.put(s3,3) it will not compute the hash code again. Instead, it will get it (h1) from "hashcode cache" as s1 and s3 are equal.
    My question is how does it know that the hashcode (h1) is of s1/s3?
    Will it maintain any map between String and hashcodes so that as s1.equals(s3), h1 is returned.
    Please clarify me if I am interpreting it wrong,

    • @akshaybabar279
      @akshaybabar279 7 ปีที่แล้ว

      avinash nalam duplicate keys are not allowed

  • @nagadeepcs86
    @nagadeepcs86 8 ปีที่แล้ว

    If you dont call the intern method, simply if you call the hashcode function for S1 ="Hello" and S3 = new String("Hello"), it will have the same hashcode value but '==' equal method returns false. Does it mean internally they are same ? and intern is used to just have the equality of the object?

  • @wizardsraj1234
    @wizardsraj1234 6 ปีที่แล้ว

    Thanks for this video. I had a question, given strings are cached in string pool I am correct in saying that those strings will not be garbage collected? Some people mention that only string literals and strings which are interned are cached in string pool is that true. Say String sFirstName = objUser.getFirstName() will the value of sFirstName be cached or not ?

  • @erfelipe
    @erfelipe 7 ปีที่แล้ว

    Thank you.

  • @rebeccaswarna7369
    @rebeccaswarna7369 7 ปีที่แล้ว

    how to ignore the cases (lower and upper) of string in pattern

  • @princepuri1188
    @princepuri1188 3 ปีที่แล้ว

    Please start making videos again, on spring, spring boot.