12 What is a String
What is String data?
Example 2 : " abcdefg "
- A group of characters enclosed between a double quotes.
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.
Nireekshan