Advertisements
Advertisements
Question
Which of the following packages contain string functions?
Options
java.awt
java.string
java.math
java.lang
MCQ
Solution
java.lang
Explanation:
The java.lang package comprises core classes, including the String class, which provides string functions like length(), charAt(), equals(), compareTo(), substring(), and others.
shaalaa.com
Is there an error in this question or solution?