Creating String Object

Strings can be constructed a variety of ways.

  • Direct method
  • Using String class constructors
  • Using toString() method defined in java.lang.Object

These are explained in detail in the following sections.

Leave a Comment

This site uses Akismet to reduce spam. Learn how your comment data is processed.