English

Define the usage of Strings in JAVA.

Advertisements

Question

Define the usage of Strings in JAVA.

Definition
Advertisements

Solution

In Java, Strings are used to store and manipulate sequences of characters. They are represented by the java.lang.String class. Strings are mainly used to store textual data and perform operations such as concatenation, comparison, searching and extraction of characters.

shaalaa.com
  Is there an error in this question or solution?
Chapter 5: Primitive Values, Wrapper Classes, Types and Casting - EXERCISE [Page 112]

APPEARS IN

Dheeraj Mehrotra Computer Science [English] Class 12
Chapter 5 Primitive Values, Wrapper Classes, Types and Casting
EXERCISE | Q 8. | Page 112
Advertisements
Share
Notifications

Englishहिंदीमराठी


      Forgot password?
Use app×