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:

SimpleDateFormat sdf = new SimpleDateFormat("zzzz", Locale.US);
System.out.println ("Result: " + sdf.format(today) ) ;

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 2

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


zzZZzzzzZZzzz

zzZZzzzzZZzzz

B
zzz Time Zone abbreviated
zzzz Time Zone in Full

zoz

zoz

answe is B
zzZZzzzzZZzzz is right