filmov
tv
String substring method internal implementation | String class | JAVA | Internal working
Показать описание
how java have internally implemented the substring method explained in easy way.
String is immutable class so every time when we do any manipulated operation it will created new object.
substring method we can use to fetch substring from original string. for eg: you only want data from 2 index to till last .So you just add beginindex in substring it will give you the result.
#String #substring #internal #JAVA #IMMUTABLE #interview Question
String is immutable class so every time when we do any manipulated operation it will created new object.
substring method we can use to fetch substring from original string. for eg: you only want data from 2 index to till last .So you just add beginindex in substring it will give you the result.
#String #substring #internal #JAVA #IMMUTABLE #interview Question