exam questions

Exam 1z0-811 All Questions

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

Exam 1z0-811 topic 1 question 35 discussion

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

Given these class definitions:

Which class or classes compile?

  • A. only MyClassB, MyClassC, and MyClassD
  • B. only MyClassB
  • C. MyClassA, MyClassB, MyClassC, and MyClassD
  • D. only MyClassB and MyClassD
Show Suggested Answer Hide Answer
Suggested Answer: C 🗳️

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
darius123
7 months, 3 weeks ago
Selected Answer: C
All classes are defined correctly
upvoted 1 times
...
Yousef10
11 months ago
Selected Answer: C
All classes are correct , no issues with them , Correct Answer is C
upvoted 1 times
...
SKHULU
1 year, 1 month ago
@CuriosityYen True that!!!!
upvoted 1 times
...
CuriosityYen
1 year, 2 months ago
Selected Answer: C
MyClassA: This class will compile without any issues. MyClassB: This class will also compile without any issues. MyClassC: This class will compile without any issues. It extends the Object class implicitly, as all classes in Java are subclasses of Object by default. MyClassD: This class will compile without any issues as well. It contains the main method, which serves as the entry point for the Java application.
upvoted 3 times
...
arjunec1
1 year, 6 months ago
Option A is correct, since MyClassC will also compile - as it extends the Class Object the syntax valid.
upvoted 1 times
...
arjunec1
1 year, 6 months ago
Selected Answer: A
Option A is correct, since MyClassC will also compile - as it extends the Class Object the syntax valid.
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