No video

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

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

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 KZfaq 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 🔥🔥
@peterPaul19783
@peterPaul19783 4 жыл бұрын
Very good explanation. Thank you very much Sir.
@josephpudupermanil704
@josephpudupermanil704 4 жыл бұрын
Very informative.. Really Great..
@sanjeetbehera5620
@sanjeetbehera5620 2 жыл бұрын
Well.A genius at it's best..Great 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!
@lolxd3248
@lolxd3248 4 жыл бұрын
I'm definitely looking forward to hearing new in-depth tutorials from you, man!
@jvsnyc
@jvsnyc 3 жыл бұрын
I can totally see why people miss your videos. Very good.
@In10Frames
@In10Frames 2 жыл бұрын
Really helpful videos. I think you should create more such videos :)
@vivekabalaiya1672
@vivekabalaiya1672 6 жыл бұрын
Very important topic in JAVA, very well explained.
@abhiganta
@abhiganta 3 жыл бұрын
Explained in the clearest way, I wonder why you stopped uploading videos..
@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.
@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!
@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.
@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.
@navneetkumar6538
@navneetkumar6538 8 жыл бұрын
I am just zabra fan of you too much simplistic way to explain. Big salute to you.
@mohnishkamble
@mohnishkamble 7 жыл бұрын
Thanks for sharing your knowledge and for time as well. Great explanation.
@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?
@bimalroka7810
@bimalroka7810 4 жыл бұрын
Precise explanation on String. Amazing! It's hard to find such videos. Thanks Ranjit.
@karthikph123
@karthikph123 8 жыл бұрын
great video. Request to post many more such videos.
@MANJUBALASAHANA
@MANJUBALASAHANA 6 жыл бұрын
Very clear explanation. Please make more videos on Java. It will be very helpful for many.
@shitaln2496
@shitaln2496 8 жыл бұрын
Beyond Appreciation!!! Thanks for sharing.
@sribalajirao
@sribalajirao 8 жыл бұрын
cool video..crisp and clear..waiting for more videos from java guru..
@ashoksrinivasan3384
@ashoksrinivasan3384 6 жыл бұрын
Awesome... I've learned so mch tdy abt String.. It helps me a lot. Thanks....
@rakeshpramanik
@rakeshpramanik Жыл бұрын
wow
@z3t3tici
@z3t3tici 8 жыл бұрын
i appreciate your all efforts in terms of sharing these knowledge based videos. Thanks a lot very helpful
@kumarsuresh98
@kumarsuresh98 8 жыл бұрын
Excellent!!!! superb
@mridulchoudhary3010
@mridulchoudhary3010 3 жыл бұрын
Your way of explanation is awesome sir !!! Hope you start uploading such awesome content in future !
@birdsonwheels4810
@birdsonwheels4810 5 жыл бұрын
Best teacher for the java award goes to Ranjith...............Sir please add 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
@yaminimehta4575
@yaminimehta4575 2 жыл бұрын
Great video!! Why have you stopped making more videos??
@sanjaysingh1110
@sanjaysingh1110 7 жыл бұрын
Very nicely explained :) One of the best explanations i have seen. please keep making more videos.
@user029082
@user029082 7 жыл бұрын
Awesome explanation. Keep posting.
@subhankarb100
@subhankarb100 8 жыл бұрын
really great work...
@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.
@jaren2kilo
@jaren2kilo 8 жыл бұрын
Excellent concise demo !
@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.
@dongerlin7589
@dongerlin7589 7 жыл бұрын
Very useful and nice video, Ranjith. In depth tutorial.
@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.
@kiranhsmys
@kiranhsmys 8 жыл бұрын
Thanks Ranjith. Very well explained . I apperciate your work.
@reshmashanbhag1884
@reshmashanbhag1884 8 жыл бұрын
Thank you Ranjith, very informative session on java.lang.String.
@nagarajanramalingam1199
@nagarajanramalingam1199 7 жыл бұрын
Realy useful, Thanks.
@SushilKumarBhaskar
@SushilKumarBhaskar 8 жыл бұрын
good one...
@ruchitaladha541
@ruchitaladha541 5 жыл бұрын
Thanks for such a great explanation!!
@shailendrakumar8167
@shailendrakumar8167 7 жыл бұрын
Really Helpful...
@toshi.j3159
@toshi.j3159 6 жыл бұрын
Hello, your videos are really helpful . Please upload more !
@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 жыл бұрын
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.
@mors6536
@mors6536 8 жыл бұрын
Great explanation! Please make more videos :)
@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.
@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 :)
@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.
@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..
@prabhakaranc2576
@prabhakaranc2576 8 жыл бұрын
Awesome Explanation :)
@lalatkishorechoudhur
@lalatkishorechoudhur 9 жыл бұрын
Hi Ranjith sir,Excellent presentation.thank you..........
@maheshdhanraj9899
@maheshdhanraj9899 9 жыл бұрын
Hi Ranjith.. Good presentation. This video helped me to understand the String concepts.thanks a lot.
@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 ?
@ThePmaha
@ThePmaha 6 жыл бұрын
Awesome Ranjith, your videos are so detail I am just loving it ...
@meekutelusaaa
@meekutelusaaa 8 жыл бұрын
Ranjith,well explained..awaiting more videos from you..
@benjaminalexander7043
@benjaminalexander7043 4 жыл бұрын
Fantastic Tutorials!!! Really Helpful! Thanks! Will you be doing more of these?
@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 :)
@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.
@rahulsaini8
@rahulsaini8 6 жыл бұрын
Nice explanation
@DineshSingh-dl7bc
@DineshSingh-dl7bc 8 жыл бұрын
Really Helpful.. Please continue and make more videos for other concepts. Learning a lo from these
@krishnansblr
@krishnansblr 8 жыл бұрын
Thanks Ranjith, I loved your video. It cleared lots of my confusions.
@postflic1829
@postflic1829 8 жыл бұрын
some latest thing i knew after video like scp in heap memory, memory leak better n good explanation
@sriramachaturvedula9048
@sriramachaturvedula9048 8 жыл бұрын
Thanks Ranjith... like your style of presentation.
@LetsBeHuman
@LetsBeHuman 5 жыл бұрын
man, why did you stopped making videos. Your videos are best.
@josephpudupermanil704
@josephpudupermanil704 7 жыл бұрын
Very Nice learning Ranjith. Excellent
@sunainagandra2924
@sunainagandra2924 6 жыл бұрын
can you please upload more videos...your videos are very usefull for beginners
@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.
@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 kzfaq.info/get/bejne/i9SRgbSY392Yqo0.html - let me know if there are questions
@jhguygih
@jhguygih 6 жыл бұрын
Very good!!!!
@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
@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.
@sandipbhaumik
@sandipbhaumik 6 жыл бұрын
If you can describe about the flyweight design pattern which has been implemented for java.lang.String, that would be great.
@LetsBeHuman
@LetsBeHuman 5 жыл бұрын
24:@2 - man, from where did you get the info such that substring has memory leak till java 1.7
@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.
@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?
@user-mt2if1ht8n
@user-mt2if1ht8n 3 жыл бұрын
Gold!
@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
@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?
@harlemch6429
@harlemch6429 8 жыл бұрын
It just awesome Ranjith, Thanks for presentation
@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
@ShujathHussain0
@ShujathHussain0 6 жыл бұрын
Awesome work. if you ever make a course please share a link, i'd love to buy
@princepuri1188
@princepuri1188 3 жыл бұрын
Please start making videos again, on spring, spring boot.
@shineblore7041
@shineblore7041 7 жыл бұрын
Just love watching ur videos :)
@devanathannarasimhan1410
@devanathannarasimhan1410 8 жыл бұрын
amazing thanks Ranjit, if possible can you share the java collections videos?
@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?
@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?
@info2nagesh
@info2nagesh 9 жыл бұрын
Thanks alot Ranjith. Your videos on java are awesome, not comparable to others.
@smilerelax5265
@smilerelax5265 5 жыл бұрын
liked ans subscribed
@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
@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 ?
@ManishTiwari22
@ManishTiwari22 8 жыл бұрын
good job ranjith.
@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
Singleton design pattern in Java - Part 2
33:00
Ranjith ramachandran
Рет қаралды 62 М.
Equals and hashcode contract
13:50
Ranjith ramachandran
Рет қаралды 86 М.
No empty
00:35
Mamasoboliha
Рет қаралды 12 МЛН
SPILLED CHOCKY MILK PRANK ON BROTHER 😂 #shorts
00:12
Savage Vlogs
Рет қаралды 42 МЛН
Garbage collection in Java, with Animation and discussion of G1 GC
44:20
Ranjith ramachandran
Рет қаралды 486 М.
HashTable vs HashMap vs Concurrent HashMap all kinds of Map implementations
41:26
Top 25 Microservice Interview Questions Answered - Java Brains
39:54
JVM ( java virtual machine) architecture - tutorial
29:16
Ranjith ramachandran
Рет қаралды 514 М.
JavaScript: Understanding the Weird Parts - The First 3.5 Hours
3:32:50
Tony Alicea
Рет қаралды 4,1 МЛН
Singleton Design Pattern in Java - part I
26:25
Ranjith ramachandran
Рет қаралды 137 М.
Java Strings are Immutable - Here's What That Actually Means
7:06
Coding with John
Рет қаралды 610 М.
Top 50 OOPS C# Interview Questions - .NET
3:05:33
Interview Happy
Рет қаралды 140 М.
Bjarne Stroustrup: C++ | Lex Fridman Podcast #48
1:47:13
Lex Fridman
Рет қаралды 1 МЛН