Java Reference

Java Reference Home | Smart Soft Home

Double Quotes "

Description

Enclosing a string of characters in double quotes indicates that the enclosed text is a String literal.

Examples

System.out.println("Hello World");  //Hello world is a String literal
String s = "What's Up Doc"; //What's Up Doc is a String literal