exam questions

Exam 1z0-819 All Questions

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

Exam 1z0-819 topic 1 question 103 discussion

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

Given the code fragment:



What is the result?

  • A. [Lettuce, Kale]
  • B. A compilation error is thrown.
  • C. [Lettuce, Kale]
    [Seabass, Salmon]
  • D. [Kale, Lettuce]
    [Salmon, Seabass]
Show Suggested Answer Hide Answer
Suggested Answer: C 🗳️

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
preachr
5 months ago
Selected Answer: C
C, easy
upvoted 1 times
...
ASPushkin
7 months, 3 weeks ago
Selected Answer: C
AbstractCollection already overrides toString() to print the contents of its elements. So, just list.toString() prints the toString() of all its elements. This is true for all collections. public StringBuilder append​(Object obj) Appends the string representation of the Object argument.
upvoted 1 times
...
f91f9be
12 months ago
C is correct
upvoted 1 times
...
d7bb0b2
1 year, 1 month ago
C is correct, add method in list has two implementatios whit a element o with index and element
upvoted 1 times
...
TheOneAboveAll
1 year, 3 months ago
Selected Answer: C
List vegetables = new ArrayList<> () ; vegetables.add ("Kale"); vegetables.add (0, "Lettuce"); System.out.println (vegetables); List fish = new ArrayList<> (); fish.add ("Salmon"); fish.add(0, "Seabass"); System.out.println(fish); Tested: C.
upvoted 1 times
...
Omnisumem
1 year, 4 months ago
Selected Answer: C
Tested: C.
upvoted 1 times
...
[Removed]
1 year, 5 months ago
Selected Answer: C
C is correct. There's no compilation error
upvoted 1 times
...
Stavok
1 year, 6 months ago
Selected Answer: B
B is correct Tested
upvoted 1 times
Ashan_Ozlov
1 year, 4 months ago
did u test?
upvoted 1 times
...
...
Obalt
1 year, 11 months ago
Correct answer is C
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