• 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
  • Jeanne Boyarsky
  • Ron McLeod
  • Paul Clapham
  • Liutauras Vilda
Sheriffs:
  • paul wheaton
  • Rob Spoor
  • Devaka Cooray
Saloon Keepers:
  • Stephan van Hulst
  • Tim Holloway
  • Carey Brown
  • Frits Walraven
  • Tim Moores
Bartenders:
  • Mikalai Zaikin

jvm internal storage

 
Ranch Hand
Posts: 75
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Which of the following encoding schemes is used by the jvm internally for storing identifiers etc.?
Unicode
UTF8
ASCII
8859_1
It depends on the platform
The answers is apparently UTF8, can someone please confuirm this, as I'm sure I've read that is uses Unicode. I have my exam in a couple of hours, and need to be sure about this.
Many thanks,
Rowan.
 
Author & Gold Digger
Posts: 7617
6
IntelliJ IDE Java
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
From JLS 3.1 Unicode


Except for comments (�3.7), identifiers, and the contents of character and string literals (�3.10.4, �3.10.5), all input elements (�3.5) in a program are formed only from ASCII characters (or Unicode escapes (�3.3) which result in ASCII characters). ASCII (ANSI X3.4) is the American Standard Code for Information Interchange. The first 128 characters of the Unicode character encoding are the ASCII characters.

 
Ranch Hand
Posts: 51
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
what does UTF8 mean?
 
Valentin Crettaz
Author & Gold Digger
Posts: 7617
6
IntelliJ IDE Java
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
See Unicode Transformation Format 8 and/or method java.io.DataOutput.writeUTF
[ April 09, 2002: Message edited by: Valentin Crettaz ]
 
Ranch Hand
Posts: 112
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator

Originally posted by Rowan Chattaway:
Which of the following encoding schemes is used by the jvm internally for storing identifiers etc.?
Unicode
UTF8
ASCII
8859_1
It depends on the platform
The answers is apparently UTF8, can someone please confuirm this, as I'm sure I've read that is uses Unicode. I have my exam in a couple of hours, and need to be sure about this.
Many thanks,
Rowan.



depends on the platform for INTERNAL storing/repersentation
Classfiles are a different matter
 
reply
    Bookmark Topic Watch Topic
  • New Topic