Internationalization

© examsiri.com
Question : 3 of 18
 
Marks: +1, -0
Given:
1. Date d = new Date(0);
2. String ds = "December 15, 2004";
3. /* insert code here*/
4. try {
5.   d = df.parse(ds);
6. }
7. catch(ParseException e) {
8.   System.out.println("Unable to parse " + ds);
9. }
10. /* insert code here too*/

What creates the appropriate DateFormat object and adds a day to the Date object?
Go to Question: