Results 1 to 3 of 3
  1. #1
    ccie007 is offline Senior Member
    Join Date
    May 2010
    Posts
    112
    Rep Power
    0

    Default Println VS system.out.println

    Hi,
    Why there are different print line statements in Java like simply println and system.out.println?

    I read book called Arts and Science of java along with CS106A stanford university material.And in the book it doesn't use system.out.println.

  2. #2
    JosAH's Avatar
    JosAH is offline Moderator
    Join Date
    Sep 2008
    Location
    Voorschoten, the Netherlands
    Posts
    13,335
    Blog Entries
    7
    Rep Power
    20

    Default

    Quote Originally Posted by ccie007 View Post
    Hi,
    Why there are different print line statements in Java like simply println and system.out.println?

    I read book called Arts and Science of java along with CS106A stanford university material.And in the book it doesn't use system.out.println.
    The System.out object is a PrintStream object; all other println( ... ) calls you have ever seen are methods of a PrintStream or PrintWriter object. There is no magic behind the scenes.

    kind regards,

    Jos

  3. #3
    ccie007 is offline Senior Member
    Join Date
    May 2010
    Posts
    112
    Rep Power
    0

Similar Threads

  1. System.out.println to a jtextarea
    By masterhoulahan in forum AWT / Swing
    Replies: 7
    Last Post: 07-07-2009, 03:11 PM
  2. difference between system.out.println() & out.println()
    By wickedrahul9 in forum Advanced Java
    Replies: 5
    Last Post: 10-18-2008, 11:06 PM
  3. System.out.println
    By Sniper-X in forum Advanced Java
    Replies: 10
    Last Post: 05-05-2008, 03:41 PM
  4. System.out.println
    By sunjavaboy in forum Advanced Java
    Replies: 3
    Last Post: 03-22-2008, 01:30 AM
  5. Help me with system.out.println
    By baltimore in forum New To Java
    Replies: 1
    Last Post: 07-31-2007, 08:30 PM

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •