exam questions

Exam 1z0-829 All Questions

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

Exam 1z0-829 topic 1 question 35 discussion

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

Given:

What is the result?

  • A. runsruns
  • B. flipsruns
  • C. runsflips
  • D. Compilation fails.
  • E. flipsflips
Show Suggested Answer Hide Answer
Suggested Answer: B 🗳️

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
SrinivasJasti
2 weeks, 1 day ago
Selected Answer: B
The compiler decides which method to call based solely on the declared type of the variable passed as an argument, not the runtime type of the object it refers to. This applies to both static and instance methods.Here declared type is Animal and Dog respectively
upvoted 1 times
...
9817c20
2 months, 1 week ago
B, compiled it in my brainz.
upvoted 2 times
...
xplorerpj
6 months, 3 weeks ago
Selected Answer: B
B is the correct answer. Tested in Intellij
upvoted 2 times
...
Samps
10 months, 4 weeks ago
Selected Answer: B
B is correct
upvoted 4 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