exam questions

Exam 1z0-819 All Questions

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

Exam 1z0-819 topic 1 question 65 discussion

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

Given:



and



and



Which three are correct? (Choose three.)

  • A. f2.foo(li) prints Hola Mundo!
  • B. b1.foo(li) prints Bonjour le monde!
  • C. b1.foo(li) prints Hello world!
  • D. f1.foo(li) prints Bonjour le monde!
  • E. f2.foo(li) prints Hello world!
  • F. f2.foo(li) prints Bonjour le monde!
  • G. f1.foo(li) prints Hola Mundo!
  • H. b1.foo(li) prints Hola Mundo!
  • I. f1.foo(li) prints Hello world!
Show Suggested Answer Hide Answer
Suggested Answer: DEH 🗳️

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
ASPushkin
6 months, 1 week ago
Selected Answer: DEH
similar to 166 Three different cases : Foo f1 = new Foo(); f1.foo(li) prints Bonjour le monde Foo f2 = new Bar(); f2.foo(li) prints Hello world Foo.collection(Collection arg) -> Bar.collection(Collection arg) because of polymorphism Bar b1 = new Bar(); b1.foo(li) prints Hello Mundo!
upvoted 1 times
...
d7bb0b2
1 year ago
D,E,H are correct
upvoted 1 times
...
Stavok
1 year, 6 months ago
Selected Answer: DEH
DEH is correct
upvoted 3 times
...
tmuralimanohar
1 year, 7 months ago
Answer: DEH
upvoted 2 times
...
Mukes877
1 year, 8 months ago
because the reference type(Base class) determines which method will be called so overridden method will be called by the compiler.
upvoted 1 times
...
Mukes877
1 year, 8 months ago
Selected Answer: DEH
The correct answer is D, E and H
upvoted 2 times
...
Obalt
2 years ago
The correct answer is D, E and H
upvoted 2 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