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
1 month, 2 weeks agoTheeOne
2 months, 3 weeks agovic88
4 months, 2 weeks agoMPignaProTech
5 months, 2 weeks ago7df49fb
1 year, 1 month agoarjunrawatirissoftware
1 year, 6 months agosomrita90
1 year, 7 months agoKeletsoM23
1 year, 9 months agoPedroC123
1 year, 7 months agofelipegomeztreufo
1 year, 10 months agoKolodets
1 year, 12 months agoVicky_65
2 years agoanmoldev2java
2 years, 5 months agocarloswork
2 years, 6 months agocarloswork
2 years, 6 months agoiSnover
2 years, 6 months agoalex_au
2 years, 6 months agoRoxyFoxy
2 years, 7 months agoiSnover
2 years, 6 months agoKolodets
1 year, 12 months ago