Is string a keyword in Java?

The java. … By new keyword : Java String is created by using a keyword “new”. For example: String s=new String(“Welcome”); It creates two objects (in String pool and in heap) and one reference variable where the variable ‘s’ will refer to the object in the heap.

For More Information Please Refer: https://www.edureka.co/blog/java-string/