String Literals in java
Java Programming Language Variables in java (Article) Variables in java (Program)
1853Program:
//Java literals are fixed or constant values in a program's source code. public class StringLiteral { public static void main(String[] a) { String strLiteral = "String Literal"; System.out.println(strLiteral); } } /* string literals are enclosed in double quotes for example, "Coffea arabica" "Hello world" */
Output:
String Literal Press any key to continue . . .
This Particular section is dedicated to Programs only. If you want learn more about Java Programming Language. Then you can visit below links to get more depth on this subject.