Win a copy of The Java Performance Companion this week in the Performance forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

JQ+: Encoding scheme of the JVM

 
Daniel Wu
Ranch Hand
Posts: 58
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Which of the following encoding schemes is used by the jvm internally for storing identifiers etc.?
1. Unicode
2. UTF8
3. ASCII
4. 8859_1
5. It depends on the platform
I choose 1. because "inside the JVM, where characters are strictly 16-bit Unicode..."(P460 of RHE).
But the JQ+ offer 2 as the correct answer. Could anyone explain the choice? Thanx in advance.
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic