System.out.println() - Sample String Display in Java

Syntax:
AccessModifier String VariableName ;
Example: public String a;
//Sample String Display

//System.out.println sample
class ForgetCode
{
public static void main(String args[])
{
String forget="www.forgetcode.com";
System.out.println("Syntax warehouse "+forget);
}
}