nerdexam
Oracle

1Z0-811 · Question #34

1Z0-811 Question #34: Real Exam Question with Answer & Explanation

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

Java Basics

Question

Given these class definitions: class MyClassA { } public class MyClassB { } class MyClassC extends Object { } class MyClassD { public static void main (String [] args) { } } Which class or classes compile?

Options

  • Aonly MyClassB, MyClassC, and MyClassD
  • Bonly MyClassB
  • CMyClassA, MyClassB, MyClassC, and MyClassD
  • Donly MyClassB and MyClassD

Unlock 1Z0-811 to see the answer

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

#access modifiers#class declarations#public/default access#file structure
Full 1Z0-811 Practice