why byte?

Collapse
This topic is closed.
X
X
 
  • Time
  • Show
Clear All
new posts
  • leza

    why byte?

    any reason why java has "byte" data type?? any practical example why I need
    byte data type?? Thanks a lot.


  • Shyamal Prasad

    #2
    Re: why byte?

    "leza" == leza <lezawang_new@h otmail.com> writes:

    leza> any reason why java has "byte" data type?? any practical
    leza> example why I need byte data type?? Thanks a lot.

    If you ever need to store just 8 bits of data you will want to use a
    byte (remember, a char is not a byte).

    Cheers!
    Shyamal


    Comment

    • Stewart Gordon

      #3
      Re: why byte?

      Hello. Welcome to newsgroups.

      Newsreaders allow you to address a single message to more than one
      'group simultaneously. This is called crossposting, and is the only
      appropriate method of sharing a message across two or more 'groups.

      Please read


      Meanwhile, since you've multiposted this time, please pick one of the
      'groups that you have multiposted to on which you wish the discussion to
      be continued.

      Stewart.

      --
      My e-mail is valid but not my primary mailbox. Please keep replies on
      on the 'group where everyone may benefit.

      Comment

      Working...