Creating String Object

20 January 2012 By Nithya Vasudevan 671 views No Comment
0 Flares Twitter 0 Facebook 0 Google+ 0 0 Flares ×

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.