The source code cited in this question contains an extra closing curly brace that makes the code invalid for compilation (cf. the attached image).
However, the expected answer is "a NullPointerException stack trace".
You should either remove the extra curly brace or change the correct answer to "The code will not compile."
About question enthuware.ocpjp.v7.2.1223
Moderators: Site Manager, fjwalraven
-
- Posts: 3
- Joined: Sun Apr 28, 2013 11:18 am
- Contact:
About question enthuware.ocpjp.v7.2.1223
- Attachments
-
- 2013-04-28_enthuware_01.png (64.74 KiB) Viewed 1953 times
-
- Site Admin
- Posts: 10388
- Joined: Fri Sep 10, 2010 9:26 pm
- Contact:
Re: About question enthuware.ocpjp.v7.2.1223
You are right. Fixed.
thank you for your feedback!
thank you for your feedback!
Who is online
Users browsing this forum: No registered users and 13 guests