You may need unicode to print characters that are not supported. Like having an application that needs to print messages in various languages (English, German, Chinese) depending on user's selection.
It is used for internationalization. In one of my projects we had different property files used for resource bundles to print messages in different languages. For languages like English, French we had normal characters, but for Chinese and others we used unicode.
Unicode is also used for printing unsupported characters in HTML pages
But even if you can use it for declaring methods, you shouldn't. It is better to declare methods and variables with English characters and English descriptions since it may be read by others.
Meaning that you should name a method like:
> getNumberOfUsers
but not:
> epestrepseArithmoChriston
The later translates to the first method but you shouldn't name methods using your native language with english characters. Someone else might want to read the code.
It happened to me where we had to debug an entire application written in Italian. Not a clue what was going on. Babel Fish became my best friend
Last edited by javaAddict; Jun 15th, 2009 at 6:46 am.
Reputation Points: 1014
Solved Threads: 446
Nearly a Senior Poster
Offline 3,259 posts
since Dec 2007