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.
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
...
This section is not available anymore. Please use the main Exam Page.1z0-808 Exam Questions
Log in to ExamTopics
Sign in:
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.
MPignaProTech
8 months agojackymak
2 years, 1 month agoakbiyik
2 years, 7 months agocarloswork
2 years, 7 months agoanmoldev2java
2 years, 7 months agoiSnover
2 years, 8 months ago