• Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

i18n

 
veena madhukar
Greenhorn
Posts: 29
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
One of the Mock Q suggested that Java.util package contains Date and Time class to support i18n. Isn't it wrong? Aren't they in Java.Text package?
 
Sreenivasa Majji
Ranch Hand
Posts: 224
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Date and time classes uses locale and format. java.text package mostly deals with formats and you can use Date/Time classes to format based on locale.

I believe the answer is correct.
 
Paul Codillo
Ranch Hand
Posts: 38
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Originally posted by veena madhukar:
One of the Mock Q suggested that Java.util package contains Date and Time class to support i18n. Isn't it wrong? Aren't they in Java.Text package?

Date and Time classes are under java.sql package although there is also a Date class under the java.util package. Classes under the java.Text package are mostly used for text-related operations like formatting decimal numbers. (java.text.DecimalFormat)
 
Ulf Dittmer
Rancher
Posts: 42969
73
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hello "paul.com"-

On your way in you may have missed that we have a policy on screen names here at JavaRanch. Basically, it must consist of a first name, a space, and a last name, and not be obviously fictitious. Since yours does not conform with it, please take a moment to change it, which you can do right here.
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic