English

Which of the following packages contain string functions?

Advertisements

Question

Which of the following packages contain string functions?

Options

  • java.awt

  • java.string

  • java.math

  • java.lang

MCQ
Advertisements

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?
Chapter 4: String Handling - EXERCISES [Page 287]

APPEARS IN

Avichal Computer Applications [English] Class 10 ICSE
Chapter 4 String Handling
EXERCISES | Q I. 8. | Page 287
Advertisements
Share
Notifications



      Forgot password?
Use app×