exam questions

Exam 1z0-808 All Questions

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

Exam 1z0-808 topic 1 question 93 discussion

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

Given the code fragment:


Test.java -

Which is the result?

  • A. Compilation fails in the Employee class. B. C.
  • D. Compilation fails in the Test class.
  • E. Both the Employee class and the Test class fail to compile.
Show Suggested Answer Hide Answer
Suggested Answer: E 🗳️

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, 2 weeks ago
Selected Answer: E
E is correct
upvoted 1 times
...
jackymak
1 year, 7 months ago
Selected Answer: E
1. this(name, age) must be in the first line of the constructor. 2. No constructor for new Employee();
upvoted 3 times
...
akbiyik
2 years, 1 month ago
this(name, age) must be in the first line of the constructor. Since the Employee class defined two constructor, Employee class doesn’t have anymore no-argument default constructor.
upvoted 3 times
...
carloswork
2 years, 1 month ago
Selected Answer: E
Answer is E.
upvoted 1 times
...
anmoldev2java
2 years, 1 month ago
Selected Answer: A
employee constructor itself will not compile because it calls this() not in the first line .. ultimately other class will not compile
upvoted 1 times
...
iSnover
2 years, 3 months ago
Selected Answer: E
The correct answer is E, there are no comments to make. There are errors in the instantiation of the constructor in the first class, and in the other class, which is the execution class, it is calling the constructor that has an error, so the class cannot be started because it is also in error. The 2 files do not compile.
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