Oracle
1Z0-851 · Question #56
1Z0-851 Question #56: Real Exam Question with Answer & Explanation
Sign in or unlock 1Z0-851 to reveal the answer and full explanation for question #56. The question stem and answer options stay visible for context.
Question
Given: public class Threads2 implements Runnable { public void run() { System.out.println("run."); throw new RuntimeException("Problem"); } public static void main(String[] args) { Thread t = new Thread(new Threads2()); t.start(); System.out.println("End of method."); } } Which two can be results? (Choose two.)
Options
- Ajava.lang.RuntimeException: Problem
- Brun. java.lang.RuntimeException: Problem
- CEnd of method. java.lang.RuntimeException: Problem
- DEnd of method. run. java.lang.RuntimeException: Problem
- Erun. java.lang.RuntimeException: Problem End of method.
Unlock 1Z0-851 to see the answer
You've previewed enough free 1Z0-851 questions. Unlock 1Z0-851 for full answers, explanations, the timed quiz mode, progress tracking, and the master PDF. Question stem and options stay visible so you can still see what's on the exam.