Date-101 Flashcards

1
Q

What is the precision limit for Date?

A

milliseconds

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
2
Q

By default which Timezone date class shows?

A

UTC ( Cordinated UT)

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
3
Q

What is the Diff b/w GMT & UT

A

GMT is civil name, UT is scientific name for same standard

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
4
Q

What is diff b/w UT and UTC?

A

UTC is based in atomic clock, UT is astronomical based

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
5
Q

How the year is represented?

A

small y

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
6
Q

How the date is represented?

A

1 to 31

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
7
Q

How is Hour is represented?

A

0-23

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
8
Q

How is month is represented?

A

,0-11

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
9
Q

ow is minute is represented?

A

0-59

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
10
Q

How is the second represented?

A

0-60,61

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
11
Q

Say some constructors of Date?

A

Date() , Date(millis) : get the time from January 1 1970 00;00;00 GMT

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
12
Q

Say some good methods of Date?

A
after(Date when),
before(Date when)
clone()
compareTo(Date 02)
equals(Date o2)
How well did you know this?
1
Not at all
2
3
4
5
Perfectly
13
Q

Which class we should use for conversion?

A

Calendar

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
14
Q

What is the default toString form?

A

dow mon dd hh:mm:ss zzz yyyy

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
15
Q

What is the epoch?

A

1 January 1970 00;00;00

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
16
Q

If the parse attempt failed , which exception it throws?

A

llegalArgumentException

17
Q

What goes in parse String argument?

A

ASCII characters only

18
Q

How to specify timezone offset?

A

with + or - preceeded the number

+ = east of greewich

19
Q

Are time zone are allowed in parse string argument?

A

YEs , you my add GMT, UTC, UT , EST …

20
Q

What is the zzz represents in the default toStirng

A

zzz : Time zone