exam questions

Exam 1z0-819 All Questions

View all questions & answers for the 1z0-819 exam

Exam 1z0-819 topic 1 question 196 discussion

Actual exam question from Oracle's 1z0-819
Question #: 196
Topic #: 1
[All 1z0-819 Questions]

Given the code fragment:



What is the result?

  • A. December 17, 2018 -
    12/17/18
  • B. 12/17/18
    Dec 17, 2018
  • C. Friday, December 17, 2018 -
    December 17, 2018
  • D. Dec 17, 2018 -
    12/17/18
Show Suggested Answer Hide Answer
Suggested Answer: D 🗳️

Comments

Chosen Answer:
This is a voting comment (?). It is better to Upvote an existing comment if you don't have anything to add.
Switch to a voting comment New
ken95jr
2 weeks, 2 days ago
Selected Answer: D
Tested
upvoted 1 times
...
dbb65b4
3 months, 2 weeks ago
Selected Answer: A
TESTED
upvoted 1 times
...
dbb65b4
3 months, 2 weeks ago
Selected Answer: A
TESTED Locale l = new Locale("en","US"); LocalDate today = LocalDate.of(2018, 12, 17); String mToday = today.format(DateTimeFormatter.ofLocalizedDate(FormatStyle.MEDIUM)); String sToday = today.format(DateTimeFormatter.ofLocalizedDate(FormatStyle.SHORT)); System.out.println(mToday); System.out.println(sToday); Dec 17, 2018 12/17/18
upvoted 1 times
dbb65b4
3 months, 2 weeks ago
I mean correct answer is D
upvoted 1 times
...
...
ASPushkin
11 months ago
Selected Answer: D
answer: D
upvoted 1 times
...
d7bb0b2
11 months, 1 week ago
D is correct: CAUSE-> FormatStyle.SHORT: This style produces the shortest format for the date and time. For example, for the date it might be '1/2/20' and for the time it might be '12 PM'. FormatStyle.MEDIUM: This style produces a longer format for the date and time. For example, for the date it might be 'Jan 2, 2020' and for the time it might be '12:00:00 PM'. FormatStyle.LONG: This style produces an even longer format for the date and time. For example, for the date it might be 'January 2, 2020' and for the time it might be '12:00:00 PM PST'. FormatStyle.FULL: This style produces the longest format for the date and time. For example, for the date it might be 'Thursday, January 2, 2020' and for the time it might be '12:00:00 PM Pacific Standard Time'
upvoted 1 times
...
d7bb0b2
11 months, 2 weeks ago
Selected Answer: D
Tested D
upvoted 1 times
...
Community vote distribution
A (35%)
C (25%)
B (20%)
Other
Most Voted
A voting comment increases the vote count for the chosen answer by one.

Upvoting a comment with a selected answer will also increase the vote count towards that answer by one. So if you see a comment that you already agree with, you can upvote it instead of posting a new comment.

SaveCancel
Loading ...
exam
Someone Bought Contributor Access for:
SY0-701
London, 1 minute ago