String Memory Allocation in Java (Stack Memory Vs Heap Memory Vs String Constant Pool)

แชร์
ฝัง
  • เผยแพร่เมื่อ 15 ต.ค. 2021
  • This video will clear your concept on String Memory allocation. After watching this video, you will sure differentiate what is stack memory, heap memory and string constant pool.
    String Algorithms
    Data Structures and Algorithm Series

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

  • @aninditarudra1133
    @aninditarudra1133 2 ปีที่แล้ว +17

    I have been learning Java for so long but the concept of string was not clear...But after this video I am able to understand the difference between string literal and string object..Thank you for sharing your knowledge in such a easy way

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

      Glad to hear that

    • @jackdanyal4329
      @jackdanyal4329 11 หลายเดือนก่อน

      how is it even possible to learn Java for a long time and not to understand the difference between literal and object? how long do you learn java? :). just curious

  • @cristoph_v
    @cristoph_v 18 ชั่วโมงที่ผ่านมา

    Thank you so much! Took me a while to understand the constant pool. This helps a lot!

  • @Uzair_Anwar2299
    @Uzair_Anwar2299 6 วันที่ผ่านมา

    After watching your video i am able to understand the concept of string. Thanks for your valuable content.

  • @hanzat2387
    @hanzat2387 2 วันที่ผ่านมา

    this is the best video ~!! thanks for the clear explanation

  • @allaboutautomation5165
    @allaboutautomation5165 2 ปีที่แล้ว +7

    The most easiest and detailed explanation of Strings I must say. This video of your's Harshal have cleared all my doubts regarding String and its memory allocation. It would be very helpful if you can explain with examples for the scenarios when to declare string with literals and when with new keyword.

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

    For sure this is the best and clear video that explain this in detail, congrats!!!!

  • @studentofcollege
    @studentofcollege 5 หลายเดือนก่อน +1

    Very clear . You should make further more videos. Teaching style is really good ❤

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

    After eternity..... something good for SDET community is your channel. I hope your concept will be helping us to land a dream sdet job😊

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

    I have seen many videos but this video has very clear explanation. Thank you!

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

    Really helpful to clear all String related concepts

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

    really good video. upload more stuff, looking forward to it.

  • @shailendramaheshwari5471
    @shailendramaheshwari5471 ปีที่แล้ว

    best explanation I 'have ever seen on java strings !!! pls bring more such videos'

  • @samirsossai717
    @samirsossai717 5 หลายเดือนก่อน

    very good, congratulations !!!!

  • @zb2747
    @zb2747 ปีที่แล้ว

    Great explanation my friend - thank you!

  • @shekhar_sahu
    @shekhar_sahu ปีที่แล้ว

    I am never going to forget the String memory allocation now :)

  • @DharmendraKumar-ce3ob
    @DharmendraKumar-ce3ob 2 ปีที่แล้ว +1

    Best video on String memory allocation. Thank you for this bhaiya.

  • @thivagarmurugan2955
    @thivagarmurugan2955 ปีที่แล้ว

    perfect explanation about String memory Allocation!!!

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

    thank you for this video! that's helped me a lot

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

    Great video! Thanks

  • @user-hg5ms5lm3k
    @user-hg5ms5lm3k 10 หลายเดือนก่อน

    The way you are teaching , it really great. So please create java tutorial series.

  • @nisarahmed9629
    @nisarahmed9629 6 หลายเดือนก่อน

    great video. short and well explained.

  • @kamoliddinabduxalikov
    @kamoliddinabduxalikov 3 หลายเดือนก่อน

    Very good👍👍👍

  • @dinushachathuranga7657
    @dinushachathuranga7657 ปีที่แล้ว

    Thank you. Well exaplained.💔

  • @movierulz8566
    @movierulz8566 ปีที่แล้ว

    Superb explaination ...under rated video

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

    Wow, Very good explanation. Thankyou so much.

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

    Great Explanation sir!!!

  • @zexyBananana
    @zexyBananana 10 หลายเดือนก่อน

    Thank You So much sir, Keep it up

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

    really helpful, thank you

  • @kanonbiswas8093
    @kanonbiswas8093 6 หลายเดือนก่อน

    very useful thank you.

  • @GAGGZz
    @GAGGZz 11 หลายเดือนก่อน

    well explained

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

    Great explanation 👌👌👌

  • @karankanojiya7672
    @karankanojiya7672 ปีที่แล้ว

    Respect ++ !

  • @anaselmakhloufi2180
    @anaselmakhloufi2180 ปีที่แล้ว

    So Clear

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

    Love From Phaltan. Keep Posting videos

  • @ImranHossain-ik1mv
    @ImranHossain-ik1mv หลายเดือนก่อน

    Do not underestimate the power of minimal subscriber channel

  • @PANKAJKUMAR-jw8nq
    @PANKAJKUMAR-jw8nq ปีที่แล้ว

    very useful content on concept with visualization, bhai please make videos on binary tree searching , linkedlist also..

  • @gulnizamoldokanova730
    @gulnizamoldokanova730 ปีที่แล้ว

    great explanation! Thank you. Could you please explain String.intern() method...

  • @amoghchavan970
    @amoghchavan970 10 หลายเดือนก่อน

    thanku

  • @shantanusingh4196
    @shantanusingh4196 ปีที่แล้ว

    nice

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

    best example

  • @VS-wq3ws
    @VS-wq3ws 2 ปีที่แล้ว +1

    Thanks Sir
    Good content video with nice explanation 👍

  • @omarkhan5223
    @omarkhan5223 ปีที่แล้ว

    What about the corner case if you make a new string s6, String s6 = new String("hello"), would that be made only in the heap space and ignored in the SCP?

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

    Which book you refered sir for this topic...when you create string s5="Java" it store in constant pool area ,it will not refence with the new key object bcz it will stored in nonconstant pool area

  • @ramalkhan9451
    @ramalkhan9451 10 หลายเดือนก่อน

    👍

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

    Sir when next videos on String will be coming ?

  • @theunusual4566
    @theunusual4566 9 หลายเดือนก่อน

    Good Explanation, But Looks Wrong.
    Checked through many sites and ChatGPT , none of those agrees that the String Created with New Operator Creates 2 Objects.
    Pls attach source of Knowledge. (Just asking for Clarity of Concept) .
    Edit : Found some references that supports 2 Objects creation with New operator .
    Confused Now

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

    well explained