exam questions

Exam 1z0-819 All Questions

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

Exam 1z0-819 topic 1 question 126 discussion

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

Given:



Which one is correct?

  • A. An IllegalThreadStateException is thrown at runtime.
  • B. The compilation falls.
  • C. Four threads are created.
  • D. Three threads are created.
Show Suggested Answer Hide Answer
Suggested Answer: A 🗳️

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
7 months ago
Selected Answer: A
t1.start() => once java start a thread cannot be restarted. so Ilegal IllegalThreadStateException is thrown
upvoted 1 times
...
Omnisumem
10 months ago
Selected Answer: A
Tested: A.
upvoted 1 times
...
dilleman
10 months, 1 week ago
A is correct, tested. It works if you remove the second t1.start(); argument which is the one causing the exception.
upvoted 1 times
...
Stavok
1 year ago
Selected Answer: A
A is correct TESTED
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