Example & Tutorial understanding programming in easy ways.

What is String in Java? String is a data type?

String is a Class in java and defined in java.lang package. Its not a primitive data type like int and long. String class represents character Strings. String is used in almost all the Java applications and there are some interesting facts we should know about String. String in immutable and final in Java and JVM uses String Pool to store all the String objects.

Some other interesting things about String is the way we can instantiate a String object using double quotes and overloading of + operator for concatenation.

String is a sequence of characters. String is a class in java.

String a="Hello java";
In above statement "a" is object reference and "Hello java" is a string literal. String is used as a data type in java.

  

Read More →
Search
R4R Team
R4Rin Top Tutorials are Core Java,Hibernate ,Spring,Sturts.The content on R4R.in website is done by expert team not only with the help of books but along with the strong professional knowledge in all context like coding,designing, marketing,etc!