strip and trim method in string #interviewtips #coding #programming #javacodinginterviewquestions

preview_player
Показать описание
strip and trim method in string

Tech Elliptica Question
Рекомендации по теме
Комментарии
Автор

Correct answer is C

reason - trim() removes all leading and trailing character whose ASCII value is less than or equal to 32(‘U+0020’ or space).

strip() which is added in java 11 usage this Character.isWhitespace(int) method to cover wide range of white space characters and remove them

TechElliptica
welcome to shbcf.ru