This week's giveaway is in the Spring forum.
We're giving away four copies of REST with Spring (video course) and have Eugen Paraschiv on-line!
See this thread for details.
The moose likes Beginning Java and the fly likes Question about Java characters Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login

Win a copy of REST with Spring (video course) this week in the Spring forum!
JavaRanch » Java Forums » Java » Beginning Java
Bookmark "Question about Java characters" Watch "Question about Java characters" New topic

Question about Java characters

Grishma Dube
Ranch Hand

Joined: Jul 01, 2003
Posts: 275
During a Java Test, I came across one question. Can anyone tell me correct answer for it?
Java characters are :-
ANSI characters
ASCII characters
Unicode characters
Ernest Friedman-Hill
author and iconoclast

Joined: Jul 08, 2003
Posts: 24195

Java uses the 16-bit Unicode character set.

[Jess in Action][AskingGoodQuestions]
Dirk Schreckmann

Joined: Dec 10, 2001
Posts: 7023
If you're wondering how you can be as smart as Ernest and figure out the answer to such an inquiry, well... I can at least suggest how to figure out such questions. Take a look at The Java Language Specification (JLS). Section 4.2 holds the answer to this question.

[How To Ask Good Questions] [JavaRanch FAQ Wiki] [JavaRanch Radio]
I agree. Here's the link:
subject: Question about Java characters
It's not a secret anymore!