Specifications
Sun Services
Java™ Programming Language
Module 9, slide 11 of 37
Copyright 2005 Sun Microsystems, Inc. All Rights Reserved. Sun Services, Revision F
Writing to Standard Output
• The println methods print the argument and a
newline character (\n).
• The print methods print the argument without a
newline character.
• The print and println methods are overloaded for
most primitive types (boolean, char, int, long,
float, and double) and for char[], Object, and
String.
• The print(Object) and println(Object) methods
call the toString method on the argument.










