• Post Reply Bookmark Topic Watch Topic
  • New Topic

Dataoutputstream VS printstream  RSS feed

 
abalfazl hossein
Ranch Hand
Posts: 635
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
While the printstream can be used for write different primitive data of JAVA, What is the the advantage of Dataoutputstream
 
Stephan van Hulst
Saloon Keeper
Posts: 7817
142
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
DataOutputStream outputs binary data. PrintStream prints character data.

Use DataOutputStream when you want to store information. Use PrintStream when you want to display information.
 
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!