nerdexam
Oracle

1Z0-829 · Question #36

1Z0-829 Question #36: Real Exam Question with Answer & Explanation

Sign in or unlock 1Z0-829 to reveal the answer and full explanation for question #36. The question stem and answer options stay visible for context.

Utilizing Java Object-Oriented Approach

Question

Given: interface IFace { public void m1(); public default void m2() { System.out.println("m2"); } public static void m3() { System.out.println("m3"); } private void m4() { System.out.println("m4"); } } class MyC implements IFace { public void m1() { System.out.println("Hello"); } } Which two method invocation execute?

Options

  • AIFace myclassobj = new Myc (); myclassobj.m3();
  • BIFace.m3();
  • CIFace muclassobj = new Myc (); myclassobj.m4();
  • Dnew MyC().m2 ();
  • EIFace.m4();
  • FIFace.m2();

Unlock 1Z0-829 to see the answer

You've previewed enough free 1Z0-829 questions. Unlock 1Z0-829 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.

Topics

#interface methods#default methods#static methods#method visibility
Full 1Z0-829 Practice