Strings and StringBuilder in Java

Поделиться
HTML-код
  • Опубликовано: 3 авг 2024
  • In this video, we cover one of the most important topics, Strings and StringBuilder in Java.
    We look into how it works internally, various operations, memory management, and some examples!
    Take part in the learning in public initiative! Share your learnings on LinkedIn and Twitter with #DSAwithKunal & don't forget to tag us!
    👉 Resources
    - Join Replit: join.replit.com/kunal-kushwaha
    - Complete Java DSA playlist: • Java + DSA + Interview...
    - Code, Assignments, & Notes: github.com/kunal-kushwaha/DSA...
    ➡️ Connect with me: kunalkushwaha.com
    =========================================
    Timestamps:
    0:00:00 Introduction
    0:00:36 What is String?
    0:02:35 String Creation: string literal
    0:03:36 Internal Working of String
    0:07:29 String Pooling
    0:09:43 String Immutability
    0:16:17 String Comparison: ==
    0:20:13 String Creation: new keyword
    0:22:02 String Comparison: .equals()
    0:28:01 PrintStream Class
    0:38:12 toString() Method
    0:42:47 Pretty Printing in Java
    0:47:05 Format Specifiers
    0:48:29 String Concatenation Operator
    1:00:42 String Performance
    1:09:59 StringBuilder Class
    1:12:37 String Methods
    1:17:50 Palindrome Program
    1:26:20 Outro
    #strings #placement #dsa #interviews

Комментарии • 810

  • @KunalKushwaha
    @KunalKushwaha  5 дней назад +1

    DSA + interview preparation playlist: ruclips.net/p/PL9gnSGHSqcnr_DxHsP7AW9ftq0AtAyYqJ

  • @Surajshorts223
    @Surajshorts223 5 месяцев назад +63

    If you have any doubt....🙃🙃 don't worry we will cover it in Object Oriented Programming😉

  • @jatin6107
    @jatin6107 2 года назад +57

    Can't Believe I was waiting for a Lecture To drop, turning into a geek for Java

  • @aradhyapatro3796
    @aradhyapatro3796 2 года назад +46

    Amazing String session, now will spend the rest of the weekend doing leetcode questions after watching these lectures it makes me really confident

  • @ranaswami5389
    @ranaswami5389 2 года назад +28

    What an amazing work you are doing Kunal. I wish I had a mentor like you during my first year of engineering. Learning DSA from your bootcamp and it's amazing. Thank you so much Kunal. You are amazing❤️

  • @Emoji1970
    @Emoji1970 2 года назад +282

    Hello..kunal bhaiya....
    Pehle muje smj nhi aata tha ki kon sa path follow kru kaise kru...and ques. Kis type ke solve kru...but not i am following your course... And i am doing great..
    Your way of teaching and set of ques. which you are giving is perfect.🔥🔥
    Main things is you are giving a excellent path to master in dsa.
    thank you soo much ❤️💯

    • @KunalKushwaha
      @KunalKushwaha  2 года назад +72

      Glad I could help!

    • @chennayaianjc3306
      @chennayaianjc3306 2 года назад +14

      @@KunalKushwaha pls help us..... ignore the things said by others and criticize you and focus on what we want..which makes us happy...do continue your good work...like you said " Time will Tell"

    • @pradeepkumar00077
      @pradeepkumar00077 2 года назад +2

      @@KunalKushwaha Bhai 🙏🙏🙏please guidance playlist maat hatao please 🥺

    • @pradeepkumar00077
      @pradeepkumar00077 2 года назад +5

      @@KunalKushwaha bhaiya plz maat hatao guidance playlist

    • @pradeepkumar00077
      @pradeepkumar00077 2 года назад +1

      @@KunalKushwaha please please

  • @sachinmulgir4898
    @sachinmulgir4898 Год назад +1

    following your videos since a week and mannnn........you haveee done someee great job here...the best part is that you cover all the topics in depth, like memory allcoation, the internal working of the program, what classes and objects java has in it and how it helps us to perform any action. like in this video only the way you've explained the concept of println and how it calls toString() and our output is printed. Just wow man....keep it up.......happy that i found your course on youtube. thanks a lot......

  • @techforpeace38183
    @techforpeace38183 Год назад +6

    The charming thing about your tutorial is even if the topic is known to me, I gather some new, in depth knowledge every time.

  • @shofiyabootwala2094
    @shofiyabootwala2094 2 года назад +17

    When you ask a question while teaching, we cannot help but shout the answer out loud!! Awesome string tutorial as always. I have never studied String to that depth.

  • @pavan5524
    @pavan5524 2 года назад +3

    Watching this video, 1.5hour flew by and felt like just 10mins content! That's how teaching is supposed to be! Doesn't make you feel bored.

  • @v-keydixit2231
    @v-keydixit2231 Год назад

    Bhai...bhai bhai....kyaa cheez hai ye course ....koi imagin nhi ke skta ki kitni shan bhasha mai aap sikha rhe hai...aapke sikhane ka tarika..aur aapki knowledge dono hi ... beyond the imagination...🙏🙏🙏🙏❤️❤️❤️❤️❤️

  • @swayam50
    @swayam50 2 года назад +2

    This is some amazing stuff, I've never really seen in more depth anywhere else. ❤️

  • @raghavsharma4195
    @raghavsharma4195 2 года назад +22

    I believe in kunal kushwaha supremacy

  • @shreyasshenoyt8776
    @shreyasshenoyt8776 2 года назад +27

    This playlist is very very good.. Kunal bhai pls thoda jaldi videos daal karo..it will help me in placement studies..mera placement chalu hai abhi..

  • @Dev3z
    @Dev3z Год назад +33

    notes
    47:55
    48:10
    55:29 , 58:39
    -->
    + operator can be only used if one of them is string
    complex object + string || primitive + string ---> object will be convert to string using to string method in println.
    1:03:43 -> new object created everytime
    1:11:54
    String Converting into character array 1:13:20
    1:13:26
    Original one is not changed, new object is created. 1:13:56
    Index of 1:14:40
    Split array 1:16:59
    Palindrome 1:24:43

    • @adarshkaushal3867
      @adarshkaushal3867 10 месяцев назад +1

      Great!!

    • @karthiknair1430
      @karthiknair1430 9 месяцев назад

      digital bad handwriting

    • @harryharry2922
      @harryharry2922 4 месяца назад

      did he explained about memory allocation and management? if yes in which video or lecture?

    • @AnshulPrakash-jf5jq
      @AnshulPrakash-jf5jq 3 месяца назад

      thank you for these timestamps

    • @Dev3z
      @Dev3z 3 месяца назад

      @@karthiknair1430 😂man

  • @abhishekr9946
    @abhishekr9946 11 месяцев назад +3

    Detailed explanation, even a non IT background can easily be master in Java if they follow this Java playlist sincerely

  • @harshshiyani1011
    @harshshiyani1011 2 года назад +30

    I learned in java at the level of JSP and servlets.
    So, I confidently tell you that if you want to learn String and StringBuilder classes very deeply, you are at the right place.
    Keep Learning.
    Kunal you are doing great work, Keep it up.

    • @KunalKushwaha
      @KunalKushwaha  2 года назад +3

      Thanks for sharing!

    • @chandan-ew4rp
      @chandan-ew4rp 2 года назад +1

      from where did u learn JSP and Servlets?
      Will u share link?

  • @Spider-Man_67
    @Spider-Man_67 2 года назад

    Kunal, I'm amazed by your explanation of strings. Previously I had followed other YT channels for DSA but they all are nothing in front of your playlist, I can surely vouch for this playlist.
    Thanks, Buddy...!!!

  • @srishtigureja6534
    @srishtigureja6534 2 года назад +3

    Never understood the need for/ use of StringBuilder in class 10 (ISC board).
    Thank you for the time and efforts you're putting in for us; You are BIG!

  • @user-pk4sr7ww9k
    @user-pk4sr7ww9k 7 месяцев назад

    Your pure intention is what that make's your explanation clear your selflessness reflects in your videos...Thanking you with my all heart

  • @yatharthnigamece19f19
    @yatharthnigamece19f19 2 года назад +75

    So much information in one video.
    Had to make a lot of notes as each line felt important 😂.
    Awesome lecture.

  • @pratikmore7258
    @pratikmore7258 4 месяца назад +1

    Every solid and clear explantion , without making confusion.

  • @veeee5577
    @veeee5577 День назад

    thanks kunal just because of your amazing explanation skills im able to love java

  • @ravinajalondhara8756
    @ravinajalondhara8756 Год назад

    i tried many courses of data structure from youtube but you are the best...you said it and you meant it

  • @akshayasalaskar9102
    @akshayasalaskar9102 Год назад +1

    Thank god I am not wasting my time and I am following this course right in the beginning of my learning journey. I will surely post over here again when I get a job. Thank you Kunal for this content.❤❤❤

  • @shoaibkhan9644
    @shoaibkhan9644 2 года назад +3

    awesome playlist Kunal more entertaining than a Netflix movie 😂 and icing on the cake is your notes.
    thanks for your hard work.

  • @anishakumari6517
    @anishakumari6517 2 года назад +4

    You are really doing a great work. Most importantly, you take out time from your schedule to make lectures for us. That's really commendable. I am very grateful to u.

    • @CineSavvySoul
      @CineSavvySoul 2 года назад

      this series is supposed to be completed

  • @sivagiris8175
    @sivagiris8175 2 года назад

    I have never seen these kind of teaching throughout my carrier#Keep Posting More Kunal
    Thank you so much... 🙏🙏

  • @rajupadhyay7314
    @rajupadhyay7314 16 дней назад

    I love this playlist and one thing is also respect that please continue this series onece again👏🏻🙏🙏🙏

  • @Raj-pi1pl
    @Raj-pi1pl 2 года назад

    only 10 mins to the video yet so much info about STRINGS . Really a very helpful video

  • @arvindkumargupta8856
    @arvindkumargupta8856 Год назад +1

    I don't think nobody can teach like you with great content..ab lag rh hai ki zindagi me kuchh bara hoga🙏

  • @rishitamandal2492
    @rishitamandal2492 Год назад +5

    I am following your course... And I am doing great..
    Your way of teaching and set of ques. which you are giving is perfect.🔥🔥

  • @chaitanyaagarwal3569
    @chaitanyaagarwal3569 2 года назад +3

    Great lecture on strings in so much depth. I highly recommend your course to all my friends in college. Great BootCamp. Thank you for all of this.🤩🤩

  • @chaitanyarora7214
    @chaitanyarora7214 Год назад

    Bhaiya cleared up a doubt that I've had for a long time. Hats off man!

  • @sakshamsharmaTech
    @sakshamsharmaTech 2 года назад

    This made my day. Learning is so so easy. Love your work.
    Thank you.

  • @AmanKumar-hv4hb
    @AmanKumar-hv4hb 2 года назад

    Really helpful no one explained all this stuffs in this way. loving to get more things.

  • @The_Process_
    @The_Process_ 2 года назад

    Hello man, thank you so much for the time and effort you're putting into making these videos. They're really appreciated. with love from Nigeria.

  • @guyswithhoodie3572
    @guyswithhoodie3572 2 года назад +4

    With due respect to "Durga" sir. I have seen the similarity of the explanation and much better and how the things works internally. While the repetition is there in durga soft classes but you have made much easier to follow this one and stick to this course until completion. Hats off!!!

  • @aayushrajwade6039
    @aayushrajwade6039 2 года назад

    Wow !!! This kind of in depth knowledge is just awesome.
    Kudos to you bro ........long live the community !!!

  • @study-glimpse7429
    @study-glimpse7429 Год назад

    Hey, kunal you are really amazing man. I understand everything here, in my college when I studied these stuff, I fill that this is not for me. But now I am confidently say that This is for me and I'm for this. Thank you very much. I am following you since last 6 months.

  • @Aakashkumar-xc2ck
    @Aakashkumar-xc2ck 2 года назад +15

    Hello Kunal bhaiya
    Plz don't stop to upload the guidance video because the video help us more to be on a right path. Plz ignore those bad insect of society who just try to ruins someone and your dreams. Plz ignore them who make controversy about you without any proof. You are our inspiration and your journey motivated us plz don't stop guiding us because apke video se kisi ek ka bhi bhala ho raha hai thi app sahi ho or app ho hi best love you bhaiya plz be what you are don't let these bad elements of society change you and what you want to do for us and the community.
    Guys if you also think like me then lets show the power of supports of kunal bhaiya.

    • @Vortx110
      @Vortx110 2 года назад +1

      Yes bhai....vo sab log to tier 1 College se h but i am from tier 4 college need these kind of guidance 🙏🙏🙏

  • @technicalexpertise
    @technicalexpertise Год назад +4

    You are very hard working to explain us these concepts. You are awesome teacher👍👍. Happy Teacher's Day.

  • @shabazalam2374
    @shabazalam2374 6 месяцев назад +2

    Bro your assignment is far better than other DSA sheet.

  • @dannyboy3413
    @dannyboy3413 2 года назад +2

    Brother you saved my life...Thank you so much ❤️

  • @gauravpatel2695
    @gauravpatel2695 2 года назад

    you are gaining so much respect from doing this bro keep it up. I really enjoyed this session

  • @prasantmahato4645
    @prasantmahato4645 2 года назад

    Your are creating a new change . Thankyou so much .Please keep going, and let this down we have big hope from you please

  • @Vartmaan4322
    @Vartmaan4322 2 года назад

    Amazing! lecture , all doubts and concepts cleared in one go.

  • @raghavsharma4195
    @raghavsharma4195 2 года назад

    I already know java but still watching your vids bcz i learn something new in every vid. Thx

  • @AmitPatel-ok5ct
    @AmitPatel-ok5ct 2 года назад

    Thank you so much buddy. I saw your videos to recall the all concepts learned during my engg. Very well explained. 💯

  • @btechwallah-uttam9407
    @btechwallah-uttam9407 Год назад

    amazing string video I discover a lot about String. I am now capable of handling any DSA question related to String.
    Thanks !!

  • @albingeorgekurian4396
    @albingeorgekurian4396 6 месяцев назад

    So much content in one short great.
    Thanks for your efforts ...

  • @yellAtMe.
    @yellAtMe. 2 года назад +3

    I am really liking this change about myself, the urge to urge to write more JAVA codes after learning from your lectures.

  • @vaibhav_kubal
    @vaibhav_kubal 9 месяцев назад

    Thank you so much for teaching the strings topic in such an engaging and informative way!
    Your explanations were clear and concise, and I really appreciated the examples you provided. I feel much more confident in my understanding of this topic now. Keep up the great work!

  • @sureshgoudappanavar382
    @sureshgoudappanavar382 5 месяцев назад

    U r literally awesome Broo... Thanks for teaching this much of things in one bootcamp🙏🙏🙏🙏🙏

  • @himanshuchoudhary2514
    @himanshuchoudhary2514 11 месяцев назад +1

    Thanks a lot I really don't have words............it's best Data & Structure Bootcamp till now I seen ....it's legit
    Thanks a lot again ..

  • @japmeetsingh635
    @japmeetsingh635 2 года назад +1

    love the way you teach concepts so easily. Bss DSA Padhne ka man karta rehta h 😂

  • @AMANVERMA-bq8hj
    @AMANVERMA-bq8hj 3 месяца назад +1

    Thank you so much Kunal Sir for your amazing teachings ! I like to binge watch your DSA videos now :))

  • @mohsinkhan973
    @mohsinkhan973 2 года назад +7

    Your way of explaining is really good. While delivering lecture by kunal I feel in class with full of attention and eagerly waiting to know more concept. At last Real Gems of our Country. Thank you @Kunal.

  • @muskanbharti1224
    @muskanbharti1224 Год назад +2

    Please complete the series. You are the only one who I trust

  • @shantahiremath7313
    @shantahiremath7313 4 месяца назад

    Thank you so much, Kunal Sir. So grateful to you.

  • @diveshkumar8025
    @diveshkumar8025 2 года назад

    Happy to hear you back.

  • @ARYANKUMAR-gz2qw
    @ARYANKUMAR-gz2qw 2 года назад

    Once again, Thanks for this course Kunal.
    This is really helping us a lot.

  • @uchiha__madara
    @uchiha__madara 2 года назад

    Thanks yaar Kunal. Life bna rhe ho. you have all the best wishes from us

  • @gulzhasmailybayeva4587
    @gulzhasmailybayeva4587 8 месяцев назад

    You are really doing a great work. Thank you so much!

  • @nomadshubham3907
    @nomadshubham3907 2 года назад +5

    To all Kunal haters:::
    Dont take him in a wrong way and misinterpret him.
    He delivers faboulous content for free and you all are jealous of him..
    Please mantaim dignity 😀 and stop being jealous..

  • @aryatyagi7301
    @aryatyagi7301 2 года назад +5

    Great content. Was waiting for this

  • @nehataslim1732
    @nehataslim1732 7 дней назад

    After a long search, got an Amazing playlist for DSA preparation. Thankyou😄

  • @mysteryman2213
    @mysteryman2213 Год назад

    Thanks for all these information i noted down all the key takeaways from this lecture it was fun knowing the internal working of the print function as well....

  • @bikramkoley6660
    @bikramkoley6660 2 года назад

    Thank you Bhai, I am a Mechanical eng student and that is the first bootcamp I am following for my placements bcz I don't have much time I am already in 6th sem, so I don't know why but I am blindly trusting on you, and the qua;ity here is really next level

  • @sanskargoyal4901
    @sanskargoyal4901 2 года назад +1

    Top class content....bhaiya don't stop the guidance videos..plz!

  • @tejasnimbre9197
    @tejasnimbre9197 2 года назад

    having learned java in depth i can assure that this explanation of java string is the best because without knowing internal working of object, reference, heap etc it is impossible to understand strings in java.

  • @131_suruchi9
    @131_suruchi9 2 года назад +4

    Amazing as always!🥳

  • @omkarkalepu1208
    @omkarkalepu1208 2 года назад +7

    Tomorrow, I have an exam still couldn't resist myself from watching this video!

  • @harjitsingh1828
    @harjitsingh1828 Год назад

    So much information in one video.
    Awesome lecture.
    from Punjab

  • @kashisharora5990
    @kashisharora5990 Месяц назад

    You are doing an amazing work kunal. thankyou for providing such valuable content.i'm really enjoying coding because of you.

  • @rishusn597
    @rishusn597 2 года назад +3

    Exemplary teaching. Damn! This is making me fall in love with Java.

  • @simranarora2817
    @simranarora2817 2 года назад

    Thank you so much, words won't be enough to express the gratitude....

  • @ishu184
    @ishu184 Год назад

    itna deail koi n btata bhai jeetna ap bta rhe ho full support bhai love you!

  • @sohelshaikh2697
    @sohelshaikh2697 2 года назад

    Thank you for this amazing series.

  • @sweetyprasad287
    @sweetyprasad287 4 месяца назад

    I am feeling more confident now! Also, I am enjoying these videos you are doing great! Going deeper into everything, loved it!

  • @TheCodingChronicles254
    @TheCodingChronicles254 Год назад

    Awesome. This made me understand strings in the simplest way. Nice lecture

  • @cricketguru8284
    @cricketguru8284 5 месяцев назад

    A very good lecture and great explanation .....i have not seen this kind of deep lecture delivery anywhere

  • @codevoid
    @codevoid 2 года назад

    Incredible Video ! Learned so much

  • @AkshatJain-vn3xu
    @AkshatJain-vn3xu 6 месяцев назад

    great video i used to struggle while doing string questions but this video has made it easy for me

  • @harshagarwal2757
    @harshagarwal2757 2 года назад +1

    "If you are watching after 1 month,then the OOP videos are already there...."
    The level of confidence this guy has (Hats off)...

  • @soujanyavt
    @soujanyavt Год назад

    Awesome lecture, I didn't knew so much about the Strings in java.

  • @sanimpandey5728
    @sanimpandey5728 Год назад

    Everytime Kunal asks for like, share and comment , I immediately pause the video to do so.
    This is my respect for the course

  • @ashd6660
    @ashd6660 Год назад

    Thank you so much Kunal Bhaiya !💙 I'm just started to learn java..& your explanation is outstanding.& I understand better because of your teaching method. Thank you ❤️

  • @manojg7730
    @manojg7730 2 года назад +1

    Best DSA Course for me

  • @lostt3435
    @lostt3435 2 года назад +1

    Hey Kunal i loved the video and a good thing abt ur video that it makes me want to watch it because i think that i learn a lot without getting bored. Please also make a separate video on string questions so that we can get a idea how to solve the questions.

  • @Helly_Patel
    @Helly_Patel 2 года назад

    Thanks for teaching us like no one did till now!! One small request, please make lectures on dynamic programming as well!!

  • @tapashnalge6703
    @tapashnalge6703 2 года назад

    Bhai strings ka hi wait tha .. thanks bruh🎉🎉

  • @siyavats6892
    @siyavats6892 2 года назад

    Thank u so much kunal for this bootcamp❤❤

  • @harshverma1316
    @harshverma1316 2 года назад +1

    Thankyou for the detailed explanation
    The way you teach is just awesome it hits directly on my brain stimuli🤗😚😊🤓

  • @girirajtomar519
    @girirajtomar519 2 года назад

    Again great & fun lecture.
    The best thing I learnt is diff b/w String & StringBuilder;

  • @groweveryday6322
    @groweveryday6322 2 года назад +3

    please bhaiya, don't remove your videos . There are some person who doesn't wann good of tier 2 or 3 student... your video was so helpful to choose what to study and from where to study and where will we just waste our time..... please don't remove such pure content....Your videos save lots of time of a tier 3 engineering student specially your live and guidance videos.. it's humble request because of some person ,u just don't change your way of guidance.. we need your guidance bhaiya.....You are one of those teacher who speaks truthfully, that too without being afraid of anyone..please don't give much importance of haters.. please 🙏🙏🙏🙏🙏🙏🙏

  • @Devilheartz
    @Devilheartz Год назад

    After a long waiting and Search I found the Right Playlist...And a Right Person for my DSA course ...Loads of love❤ Kunal brooh for your free worthy content ..which we can't get even it is highly Paid Course ..Thanks a lot and keep Rocking .

  • @pretayy_purple
    @pretayy_purple 7 месяцев назад

    Hello Kunal Bhaiya,
    After any concept you say "Simple Stuff" but it's YOU, who makes it simple!
    You make the concepts simple and easy to understand, and all the "simple stuff" gets imprinted in the mind! Thank you so much for all these videos! I'm very grateful to have learned the concepts by watching your videos. Thanks a ton! ❤💯

  • @rohanchoudhary4034
    @rohanchoudhary4034 2 года назад

    After array was waiting for String video, man you have cleared many doubts In Array wala video, this string video is also great

  • @shankarlalsharma3674
    @shankarlalsharma3674 3 месяца назад +1

    Point to remember, 51:06 ->
    sysout(“a”+1) //output: a1, here integer will be converted to wrapper class Integer that will call toString() method