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

  Рет қаралды 109,047

Ranjith ramachandran

Ranjith ramachandran

9 жыл бұрын

java.lang.A string is a very special class in java. There are a lot of special characteristics associated with String. This makes it a favorite core java interview question topic. Here I discuss some interesting facts about java.lang.String
#java #strings #string #class #classinjava #javaprogramming #javatutorial #javascript #easy #javainstitute #corejava #trending #fyp #fypシ゚viral #fypシ #trending #string #interview #interviewquestions #artificialintelligence #international

Пікірлер: 144
@anandashok7301
@anandashok7301 4 жыл бұрын
The best video on String Class. No one in the KZbin has explained this way.
@freedomseeker9301
@freedomseeker9301 Жыл бұрын
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 жыл бұрын
Explanation 🔥🔥
@ReginaldOdhiambo
@ReginaldOdhiambo 5 жыл бұрын
You are the best. Best String explanation ever.
@TechWithTarek
@TechWithTarek 8 жыл бұрын
Amazing in depth tutorial of the String class. Need more tutorials like these!
@peterPaul19783
@peterPaul19783 4 жыл бұрын
Very good explanation. Thank you very much Sir.
@josephpudupermanil704
@josephpudupermanil704 4 жыл бұрын
Very informative.. Really Great..
@lolxd3248
@lolxd3248 4 жыл бұрын
I'm definitely looking forward to hearing new in-depth tutorials from you, man!
@sanjeetbehera5620
@sanjeetbehera5620 2 жыл бұрын
Well.A genius at it's best..Great explanation
@jvsnyc
@jvsnyc 3 жыл бұрын
I can totally see why people miss your videos. Very good.
@karthikph123
@karthikph123 8 жыл бұрын
great video. Request to post many more such videos.
@mohnishkamble
@mohnishkamble 7 жыл бұрын
Thanks for sharing your knowledge and for time as well. Great explanation.
@vivekabalaiya1672
@vivekabalaiya1672 6 жыл бұрын
Very important topic in JAVA, very well explained.
@fx_bias
@fx_bias 8 жыл бұрын
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.
@shitaln2496
@shitaln2496 8 жыл бұрын
Beyond Appreciation!!! Thanks for sharing.
@PoojaSharma-nr9by
@PoojaSharma-nr9by 8 жыл бұрын
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!
@padmnabham
@padmnabham 8 жыл бұрын
Very clear and neat explosion on string concept with simple example programs....
@LaurenLeung
@LaurenLeung 8 жыл бұрын
all of your videos are so helpful! thank you for making these!
@wmj010cn
@wmj010cn 8 жыл бұрын
+Lauren Leung do you know anything about the encoding stuff in java?
@user029082
@user029082 7 жыл бұрын
Awesome explanation. Keep posting.
@navneetkumar6538
@navneetkumar6538 8 жыл бұрын
I am just zabra fan of you too much simplistic way to explain. Big salute to you.
@In10Frames
@In10Frames 2 жыл бұрын
Really helpful videos. I think you should create more such 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
@venkaraj
@venkaraj 8 жыл бұрын
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.
@kiranhsmys
@kiranhsmys 8 жыл бұрын
Thanks Ranjith. Very well explained . I apperciate your work.
@z3t3tici
@z3t3tici 8 жыл бұрын
i appreciate your all efforts in terms of sharing these knowledge based videos. Thanks a lot very helpful
@DineshSingh-dl7bc
@DineshSingh-dl7bc 8 жыл бұрын
Really Helpful.. Please continue and make more videos for other concepts. Learning a lo from these
@SushilKumarBhaskar
@SushilKumarBhaskar 8 жыл бұрын
good one...
@shineblore7041
@shineblore7041 7 жыл бұрын
Just love watching ur videos :)
@reshmashanbhag1884
@reshmashanbhag1884 8 жыл бұрын
Thank you Ranjith, very informative session on java.lang.String.
@bimalroka7810
@bimalroka7810 4 жыл бұрын
Precise explanation on String. Amazing! It's hard to find such videos. Thanks Ranjit.
@ThePmaha
@ThePmaha 6 жыл бұрын
Awesome Ranjith, your videos are so detail I am just loving it ...
@kumarsuresh98
@kumarsuresh98 8 жыл бұрын
Excellent!!!! superb
@dongerlin7589
@dongerlin7589 7 жыл бұрын
Very useful and nice video, Ranjith. In depth tutorial.
@subhankarb100
@subhankarb100 8 жыл бұрын
really great work...
@jaren2kilo
@jaren2kilo 8 жыл бұрын
Excellent concise demo !
@prabhakaranc2576
@prabhakaranc2576 8 жыл бұрын
Awesome Explanation :)
@sanjaysingh1110
@sanjaysingh1110 6 жыл бұрын
Very nicely explained :) One of the best explanations i have seen. please keep making more videos.
@popatkalushe1261
@popatkalushe1261 4 жыл бұрын
Thanks you ! . Your explanation technique is just awesome.
@sribalajirao
@sribalajirao 8 жыл бұрын
cool video..crisp and clear..waiting for more videos from java guru..
@MANJUBALASAHANA
@MANJUBALASAHANA 6 жыл бұрын
Very clear explanation. Please make more videos on Java. It will be very helpful for many.
@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 :)
@birdsonwheels4810
@birdsonwheels4810 5 жыл бұрын
Best teacher for the java award goes to Ranjith...............Sir please add more videos
@ruchitaladha541
@ruchitaladha541 5 жыл бұрын
Thanks for such a great explanation!!
@abhiganta
@abhiganta 3 жыл бұрын
Explained in the clearest way, I wonder why you stopped uploading videos..
@ashoksrinivasan3384
@ashoksrinivasan3384 6 жыл бұрын
Awesome... I've learned so mch tdy abt String.. It helps me a lot. Thanks....
@nagarajanramalingam1199
@nagarajanramalingam1199 7 жыл бұрын
Realy useful, Thanks.
@krishnansblr
@krishnansblr 8 жыл бұрын
Thanks Ranjith, I loved your video. It cleared lots of my confusions.
@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.
@meekutelusaaa
@meekutelusaaa 8 жыл бұрын
Ranjith,well explained..awaiting more videos from you..
@mridulchoudhary3010
@mridulchoudhary3010 3 жыл бұрын
Your way of explanation is awesome sir !!! Hope you start uploading such awesome content in future !
@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.
@shailendrakumar8167
@shailendrakumar8167 7 жыл бұрын
Really Helpful...
@harlemch6429
@harlemch6429 8 жыл бұрын
It just awesome Ranjith, Thanks for presentation
@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.
@josephpudupermanil704
@josephpudupermanil704 7 жыл бұрын
Very Nice learning Ranjith. Excellent
@mors6536
@mors6536 8 жыл бұрын
Great explanation! Please make more videos :)
@toshi.j3159
@toshi.j3159 6 жыл бұрын
Hello, your videos are really helpful . Please upload more !
@sriramachaturvedula9048
@sriramachaturvedula9048 8 жыл бұрын
Thanks Ranjith... like your style of presentation.
@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.
@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
@maheshdhanraj9899
@maheshdhanraj9899 9 жыл бұрын
Hi Ranjith.. Good presentation. This video helped me to understand the String concepts.thanks a lot.
@ravipunia59
@ravipunia59 9 жыл бұрын
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.
@jhguygih
@jhguygih 6 жыл бұрын
Very good!!!!
@rahulsaini8
@rahulsaini8 6 жыл бұрын
Nice explanation
@benjaminalexander7043
@benjaminalexander7043 4 жыл бұрын
Fantastic Tutorials!!! Really Helpful! Thanks! Will you be doing more of these?
@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.
@ManishTiwari22
@ManishTiwari22 8 жыл бұрын
good job ranjith.
@lalatkishorechoudhur
@lalatkishorechoudhur 8 жыл бұрын
Hi Ranjith sir,Excellent presentation.thank you..........
@info2nagesh
@info2nagesh 8 жыл бұрын
Thanks alot Ranjith. Your videos on java are awesome, not comparable to others.
@ramashan23
@ramashan23 8 жыл бұрын
Your are Topics are really Insight full and very interesting , Getting addicted to more of you courses , Keep up the good work :-)
@ranjithramachandran5928
@ranjithramachandran5928 8 жыл бұрын
+ramanathan shankar Thanks for the kind words! pls subscribe, I try to release at least 1 video in 2 weeks.
@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..
@postflic1829
@postflic1829 8 жыл бұрын
some latest thing i knew after video like scp in heap memory, memory leak better n good explanation
@Radhakankanala
@Radhakankanala 8 жыл бұрын
Great work Ranjith, the videos are really helpful, please make videos on other concepts as well.
@ranjithramachandran5928
@ranjithramachandran5928 8 жыл бұрын
+Radha kankanala Thanks, please subscribe :)
@sunainagandra2924
@sunainagandra2924 6 жыл бұрын
can you please upload more videos...your videos are very usefull for beginners
@erfelipe
@erfelipe 7 жыл бұрын
Thank you.
@devanathannarasimhan1410
@devanathannarasimhan1410 8 жыл бұрын
amazing thanks Ranjit, if possible can you share the java collections videos?
@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 ?
@ashishagrawal7709
@ashishagrawal7709 7 жыл бұрын
Its Amazing, pls provide some videos on ExecutorServices
@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 kzbin.info/www/bejne/i5_Ef4Sdr9xnsLs - let me know if there are questions
@sandipbhaumik
@sandipbhaumik 6 жыл бұрын
If you can describe about the flyweight design pattern which has been implemented for java.lang.String, that would be great.
@ShujathHussain0
@ShujathHussain0 6 жыл бұрын
Awesome work. if you ever make a course please share a link, i'd love to buy
@ravikumarizaac
@ravikumarizaac 9 жыл бұрын
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 жыл бұрын
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.
@LetsBeHuman
@LetsBeHuman 5 жыл бұрын
24:@2 - man, from where did you get the info such that substring has memory leak till java 1.7
@yaminimehta4575
@yaminimehta4575 2 жыл бұрын
Great video!! Why have you stopped making more videos??
@rakeshpramanik
@rakeshpramanik Жыл бұрын
wow
@user-mt2if1ht8n
@user-mt2if1ht8n 3 жыл бұрын
Gold!
@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.
@vlsnsatyas
@vlsnsatyas 7 жыл бұрын
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 5 жыл бұрын
man, why did you stopped making videos. Your videos are best.
@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 ?
@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
@smilerelax5265
@smilerelax5265 5 жыл бұрын
liked ans subscribed
@9939364566
@9939364566 8 жыл бұрын
Hi Ranjith... Thanks for the explanation. I have a question though. While dealing with immutable Classes, If we create 2 objects out of the class with the same values will they also have same reference?
@vinodbhadu4576
@vinodbhadu4576 7 жыл бұрын
Ranjith sir, you are awesome but why only few videos, please make videos on java 8.
@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?
@wmj010cn
@wmj010cn 8 жыл бұрын
create,clearify what's been confusing!Would you cast some light on string encoding in java,such the getBytes[] method from String class
@srinidhiii
@srinidhiii 8 жыл бұрын
wow man
@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?
@kalyanraju37
@kalyanraju37 8 жыл бұрын
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?
@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 kzbin.info/www/bejne/kHOtYahvgsZ-qq8 a little bit
@gaaliprabhakar8882
@gaaliprabhakar8882 7 жыл бұрын
I have seen this tutorial before , but that not fully explanation about Class loader.
Singleton design pattern in Java - Part 2
33:00
Ranjith ramachandran
Рет қаралды 62 М.
Best Toilet Gadgets and #Hacks you must try!!💩💩
00:49
Poly Holy Yow
Рет қаралды 9 МЛН
Red❤️+Green💚=
00:38
ISSEI / いっせい
Рет қаралды 81 МЛН
The best roadmap for competitive programming
0:31
Gaurav Sen
Рет қаралды 222 М.
Java Strings are Immutable - Here's What That Actually Means
7:06
Coding with John
Рет қаралды 608 М.
HashTable vs HashMap vs Concurrent HashMap all kinds of Map implementations
41:26
Garbage collection in Java, with Animation and discussion of G1 GC
44:20
Ranjith ramachandran
Рет қаралды 485 М.
Equals and hashcode contract
13:50
Ranjith ramachandran
Рет қаралды 85 М.
Singleton Design Pattern in Java - part I
26:25
Ranjith ramachandran
Рет қаралды 137 М.
Java Multithreading Interview Questions
24:56
in28minutes - Get Cloud Certified
Рет қаралды 322 М.
Acing Google Coding Interview as an 18 year old High School Student
48:57
Introduction to CompletableFuture in Java 8
19:34
Defog Tech
Рет қаралды 322 М.
Memory Fundamentals - part 1 of Java Memory Management
18:31
Virtual Pair Programmers
Рет қаралды 142 М.
Best Toilet Gadgets and #Hacks you must try!!💩💩
00:49
Poly Holy Yow
Рет қаралды 9 МЛН