In Java, we can directly use String to declare a string variable name and specify its value. We do not have to define the string as an array by using new keywor
String
String is a Java Object and not a primitive data type. String is part of the java.lang package that is imported by default in any java project.
There is no need to define an array of char, just use String.
Possible duplicate: Java String import