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
Yes String is an object in Java. The fact that it can be used similar to primitives does not contradict
Please refer - Strings are objects in Java, so why don't we use 'new' to create them?