1 Replies - 4335 Views - Last Post: 09 November 2008 - 01:51 AM Rate Topic: -----

#1 cyberdyne   User is offline

  • New D.I.C Head

Reputation: 0
  • View blog
  • Posts: 1
  • Joined: 08-November 08

java byte stream char Stream confusion!

Post icon  Posted 08 November 2008 - 09:32 PM

hi,
I jus now started programming with java.I have a lot of confusion over the streams of java like byte and the characters.And also i would like to know the application of each stream class.And the difference between byte and char?

thank you
bye
Is This A Good Question/Topic? 0
  • +

Replies To: java byte stream char Stream confusion!

#2 g00se   User is offline

  • D.I.C Lover
  • member icon

Reputation: 3744
  • View blog
  • Posts: 17,121
  • Joined: 20-September 08

Re: java byte stream char Stream confusion!

Posted 09 November 2008 - 01:51 AM

Byte streams (InputStream/OutputStream) are for binary data, char streams (Reader/Writer) are for character data. A byte is a signed 8 bit datatype. A char is an unsigned 16 bit datatype principally for holding character data
Was This Post Helpful? 0
  • +
  • -

Page 1 of 1