A string literal is a source code representation of a value of a String object : String « Java Source And Data Type « SCJP






public class MainClass{
    public static void main(String[] argv){
        String s = "B J";
        System.out.println("B" + " J");

        System.out.println(s);
    }
}








1.15.String
1.15.1.Java does not deal with strings as arrays of bytes, but as objects
1.15.2.A String literal with the Unicode representation
1.15.3.A string literal is a source code representation of a value of a String object