Special Offer take any 4 courses for INR 21999.00*

Courses
0

Explain the new String methods added in Java 11.

January 23, 2025

Java 11 added several String methods:
isBlank(): Checks if a string is empty or contains only white spaces.
lines(): Returns a stream of lines split by line terminators.
strip(): Removes leading and trailing white spaces.
repeat(int count): Repeats the string.

Leave a Comment

Drop a Query

Whether to upskill or for any other query, please drop us a line and we'll be happy to get back to you.

Drop a Query NEW

Request A Call Back

Please leave us your contact details and our team will call you back.

Request A Call Back

By tapping Submit, you agree to Cambridge infotech Privacy Policy and Terms & Conditions

Enquiry Now

Enquiry popup