A is correct, C is incorrect, boolean is not same as Boolean, so this.contract = new Boolean("True"); is a compilation error for. D can be the another correct option if we are writing true instead of TRUE. Other than this none of these are correct.
Tested. Answer is A and C.
Comments:
* Option C works even though it has been deprecated since version 9 (1z0-808 is about java 8).
** Option B would only be correct if it is inside the constructor, on line n1. As option B is pointing to line n2, it will throws an error.
The correct options are A and C, as all others contain syntax errors. It cannot be the letter B because "this" cannot be instantiated in static methods.
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.
abhayshitole
4 months, 2 weeks agoTheeOne
5 months, 3 weeks agovic88
7 months, 2 weeks agoMPignaProTech
8 months, 2 weeks ago7df49fb
1 year, 4 months agoarjunrawatirissoftware
1 year, 9 months agosomrita90
1 year, 10 months agoKeletsoM23
2 years agoPedroC123
1 year, 10 months agofelipegomeztreufo
2 years, 1 month agoKolodets
2 years, 2 months agoVicky_65
2 years, 3 months agoanmoldev2java
2 years, 8 months agocarloswork
2 years, 8 months agocarloswork
2 years, 8 months agoiSnover
2 years, 9 months agoalex_au
2 years, 9 months agoRoxyFoxy
2 years, 10 months agoiSnover
2 years, 9 months agoKolodets
2 years, 2 months ago