This week's book giveaway is in the Servlets forum.
We're giving away four copies of Murach's Java Servlets and JSP and have Joel Murach on-line!
See this thread for details.
The moose likes Programmer Certification (SCJP/OCPJP) and the fly likes java.util.Locale will accept any String... Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of Murach's Java Servlets and JSP this week in the Servlets forum!
JavaRanch » Java Forums » Certification » Programmer Certification (SCJP/OCPJP)
Bookmark "java.util.Locale will accept any String..." Watch "java.util.Locale will accept any String..." New topic
Author

java.util.Locale will accept any String...

Chandella Montero
Ranch Hand

Joined: Feb 18, 2011
Posts: 89
and will compile and run! Watch out for this one on the exam:



The output is:

heaven

Process completed.


OCA, OCP Java 6
Rajkamal Pillai
Ranch Hand

Joined: Mar 02, 2005
Posts: 443
    
    1

Is that an observation or a question?
Chandella Montero
Ranch Hand

Joined: Feb 18, 2011
Posts: 89
It was an observation. I don't really know why, but just realised that it happens, so it's something to watch out for.
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: java.util.Locale will accept any String...
 
Similar Threads
is it possible to change jvm locale by using command line parameters ?
Struts2 Internationalization
Calendar with Locale
ResourceBundle not using Locale
Getting locale/language in struts beans