• Post Reply Bookmark Topic Watch Topic
  • New Topic

write  RSS feed

 
trinadh reddy
Ranch Hand
Posts: 60
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
difference between System.out.write and System.out.println
 
Jesper de Jong
Java Cowboy
Sheriff
Posts: 16057
88
Android IntelliJ IDE Java Scala Spring
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
System.out is a java.io.PrintStream object. Read the API documentation of java.io.PrintStream.

println() is a convenient method with which you can print strings to the console. With write() you can only write bytes or byte arrays.
[ October 13, 2005: Message edited by: Jesper de Jong ]
 
Don't get me started about those stupid light bulbs.
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!