public class string_class_Example { public static void main(String args[]) { String obj = "I LIKE INTERVIEW MANIA"; System.out.println(obj.length()); } }
Output: 22
Previous Question Next Question
Your comments will be displayed only after manual approval.