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