• Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other Pie Elite all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Tim Cooke
  • paul wheaton
  • Jeanne Boyarsky
  • Ron McLeod
Sheriffs:
  • Paul Clapham
  • Liutauras Vilda
  • Devaka Cooray
Saloon Keepers:
  • Tim Holloway
  • Roland Mueller
Bartenders:

UTF-8

 
Ranch Hand
Posts: 389
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
HI
Can someone tell me something abt UTF-8 ?? What kind of questions can we expect??
Tintin
 
Ranch Hand
Posts: 48
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Hi Tintin,
Its a type of encoding used for the InputStreamReader and OutputStreamWrite classes. You can specify "UTF-8" as one of the encoding types for these two classes. Generally, one is tested on the constructor basics for the different classes, including the above mentioned two classes. I not aware of any other type of questions being asked on these.
Jai
 
Jaikumar Nair
Ranch Hand
Posts: 48
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
sorry, i missed the "r" in OutputStreamWriter, in the earlier message....
 
Greenhorn
Posts: 13
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
UTF-8 is used to write primitive variables (int, char, etc) in binary form using 1 byte only. You won't see questions about encoding scheme in Programmer exam but I need this to remove deprecated method in my Developer assignment. Hope this help!
 
Author and all-around good cowpoke
Posts: 13078
6
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
"UTF-8 is used to write primitive variables (int, char, etc) in binary form using 1 byte only."
Where in the world did you get that astonishing bit of mis-information? UTF-8 is use to encode Unicode characters in 1, 2 or 3 bytes using a Reader or Writer. You do not use any Reader or Writer to write primitives in binary form.
The published Sun objectives - section 11 - specifically state that you need to understand character encoding in either platform default or ISO 8859-1.
Bill

------------------
author of:
 
What are your superhero powers? Go ahead and try them on this tiny ad:
Smokeless wood heat with a rocket mass heater
https://woodheat.net
reply
    Bookmark Topic Watch Topic
  • New Topic