MCQ
Single Best Answer
Moderate
QWhich of these methods of the class String is used to extract a single character from a string object?
ID: #23890
ICSE Computer Application - Class X - Selection Examination - 2024-25 - MCQ - CALCUTTA PUBLIC SCHOOL
95 views
Question Info
#23890Q ID
ModerateDifficulty
ICSE Computer Application - Class X - Selection Examination - 2024-25 - MCQ - CALCUTTA PUBLIC SCHOOLTopic
Your Answer
Choose the Best Option
Click any option to instantly check if you're correct.
Correct Answer: Option C
Explanation
Explanation:
The charAt(int index) method in the String class is used to extract a character at a specific position (index) in the string.
Java is case-sensitive, so the correct method name is charAt().
Continue Practice
Share
Share This Question
Challenge a friend or share with your study group.
More from This Topic