is string a keyword in java?

No, String is not a keyword in java. String is an object which is created by using String class. String objects are immutable and they can’t modified i.e. any change in the existing object will result into a new object.


public class Main {
    public static void main(String[] args) {
        String language = "java";
        System.out.println("Language: " + language);
        String website = new String("");
        System.out.println("Website: " + website);


Language: java

Java interview questions on String Handling

Please follow and like us:
Content Protection by