SPIRO THE TECH GURU

Back

What is Java String?

By Admin on

Java String provides a lot of concepts that can be performed on a string such as compare, concat, equals, split, length, replace, compareTo, intern, substring etc.

In java, string is basically an object that represents sequence of char values.

An array of characters works same as java string. For example:

  1. char[] ch={'j','a','v','a','t','p','o','i','n','t'};  
  2. String s=new String(ch);  





SPIRO Google Plus