Loading...
What is the data type returned by the following library methods?
Give the output of the following Character class methods:
Define a class to accept a String and print the number of digits, alphabets and special characters in the string. Example: S = “KAPILDEV@83” Output: Number of digits – 2 Number of Alphabets – 8 Number of Special characters – 1
Character class methods are found in the package called:
Define a class to accept a String and Print if it is a Super string or not. A String is Super if the number of uppercase letters are equal to the number of lower case letters. [Use Character & String methods only] Example : “COmmITmeNt” Number of Uppercase letters – 5 Number of Lowercase letters – 5 String is a Super String
The output of the statement: System.out.println(Character.toUpperCase(‘b’) + 2); is:
© 2026 PadhAiPro. This question is provided for educational purposes.