Lesson 23 of 34
StringBuilder: Strings ಅನ್ನು ವೇಗವಾಗಿ ನಿರ್ಮಿಸುವುದು
8 min 30 XP
Strings immutable ಆದ್ದರಿಂದ loop ನಲ್ಲಿ += ಪ್ರತಿ ಬಾರಿ ಹೊಸ String ರಚಿಸುತ್ತದೆ, ಅದು ನಿಧಾನ. StringBuilder mutable ಮತ್ತು ವೇಗ. String vs StringBuilder ಸಾಮಾನ್ಯ interview ಪ್ರಶ್ನೆ.
Example: edit me and press Run
Output Loading Java (first time takes a few seconds)
Press Run to see the result here.split() ಒಂದು String ಅನ್ನು String array ಆಗಿ ಒಡೆಯುತ್ತದೆ, String.join() ತುಂಡುಗಳನ್ನು ಮತ್ತೆ ಜೋಡಿಸುತ್ತದೆ.
Example: edit me and press Run
Output Loading Java (first time takes a few seconds)
Press Run to see the result here.