exam questions

Exam 1z0-819 All Questions

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

Exam 1z0-819 topic 1 question 171 discussion

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

Given these two classes:



And given this fragment:



Which describes the fragment?

  • A. It throws an IllegalMonitorStateException.
  • B. It is subject to deadlock.
  • C. It is subject to livelock.
  • D. The code does not compile.
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
d7bb0b2
6 months, 4 weeks ago
Selected Answer: B
B is correct, if two worker are raeady at the same time w1 wait for w2 to work and w2 wait for w1.
upvoted 1 times
...
RoxyFoxy
9 months, 2 weeks ago
Selected Answer: D
In the last fragment "resource. owner = w1; " does not compile.... owner is instance variable in Resource class. Where is declared the "resource" variable? That in work() method is local and does not compile...
upvoted 1 times
RoxyFoxy
9 months, 2 weeks ago
if "r.owner = w1" then will compile.
upvoted 1 times
...
...
[Removed]
11 months, 1 week ago
Selected Answer: B
The answer is probably B but I'm kinda confused on where this wait(10) method comes from. It's not showing an static imports so let's assume this is valid
upvoted 1 times
...
Stavok
1 year ago
Selected Answer: B
B is Correct
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