Specifications
Sun Services
Java™ Programming Language
Module 3, slide 14 of 37
Copyright 2005 Sun Microsystems, Inc. All Rights Reserved. Sun Services, Revision F
Textual – String
The textual String type has the following characteristics:
• Is not a primitive data type; it is a class
• Has its literal enclosed in double quotes (" ")
"The quick brown fox jumps over the lazy dog."
• Can be used as follows:
String greeting = "Good Morning !! \n";
String errorMessage = "Record Not Found !";










