Oracle
1Z0-851 · Question #40
1Z0-851 Question #40: Real Exam Question with Answer & Explanation
Sign in or unlock 1Z0-851 to reveal the answer and full explanation for question #40. The question stem and answer options stay visible for context.
Question
Given: 01. public class Hi { 02. void m1() { } 03. protected void() m2 { } 04. } 05. 06. class Lois extends Hi { 07. // insert code here 08. } Which four code fragments, inserted independently at line 7, will compile? (Choose four.)
Options
- Apublic void m1() { }
- Bprotected void m1() { }
- Cprivate void m1() { }
- Dvoid m2() { }
- Epublic void m2() { }
- Fprotected void m2() { }
- Gprivate void m2() { }
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.