Sunday 18 September 2016

What is a String

12 What is a String

What is String data?
  • A group of characters enclosed between a double quotes.
              Example 1 : " Nireekshan "
              Example 2 : " abcdefg "

What is java.lang.String class
  • String is a predefined class presents in java.lang package.
  • java.lang package is a default package in java, means we no need to import explicitly.
How we will get String data?
  • To get String data we need to create a object for String class.

Thanks for your time.