exam questions

Exam 1z0-808 All Questions

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

Exam 1z0-808 topic 1 question 133 discussion

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

Which two class definitions fail to compile? (Choose two.)
A.

B.

C.

D.

E.

Show Suggested Answer Hide Answer
Suggested Answer: CD

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
MPignaProTech
2 months, 3 weeks ago
C: a class cannot be declared private or protected E: final abstract is a bad combinaition good answer is CE
upvoted 1 times
...
7df49fb
9 months, 4 weeks ago
Class C: The class A2 is declared with the illegal modifier private, which is not permitted for a top-level class declaration. Class E: The class A5 is declared as both final and abstract, which is not allowed. A class can be either final or abstract, not both.
upvoted 1 times
...
dsms
1 year, 5 months ago
correct answer is: C E
upvoted 1 times
...
Rajeevkuamr
2 years ago
Sorry,C & E
upvoted 1 times
...
Rajeevkuamr
2 years ago
D&E are the answers.
upvoted 1 times
...
carloswork
2 years, 2 months ago
Answer is CE. To test: /* A */ abstract class A3 { private static int i; public void doStuff(){} public A3(){} } /* B */ final class A1 { public A1(){} } /* C */ private class A2{ // Illegal Modifier for the class A2 private static int i; private A2(){} } /* D */ class A4 { protected static final int i = 10; private A4() {} } /* E */ final abstract class A5 { // The class A5 can be either final or abstract, not both protected static int i; void doStuff() {} abstract void doIt(); }
upvoted 2 times
...
iSnover
2 years, 3 months ago
The correct answer is CE: C -> You cannot put the keyword "private" in a class, either it is public or has the default access which can be put or not. E -> You cannot have an abstract and final class at the same time.
upvoted 2 times
...
shivkumarx
2 years, 4 months ago
Answer is: C & E You can't have a final abstract class, D is legal
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