What type of result is printed?

Given the code fragment:
<code>
SimpleDateFormat sdf = new SimpleDateFormat(“zzzz”, Locale.US);
System.out.println (“Result: ” + sdf.format(today) ) ;
</code>

What type of result is printed?

Given the code fragment:
<code>
SimpleDateFormat sdf = new SimpleDateFormat(“zzzz”, Locale.US);
System.out.println (“Result: ” + sdf.format(today) ) ;
</code>

What type of result is printed?

A.
Time zone abbreviation

B.
Full-text time zone name

C.
Era

D.
Julian date

E.
Time of the Epoch (in milliseconds)

Explanation:
Assuming that the variable today contains a date, the time zone abbreviation, such as Pacific Standard Time or Central European Summer Time, will be printed.



Leave a Reply 3

Your email address will not be published. Required fields are marked *