Isnt it possible for this code to generate NullPointerException if console is not available ?
Regards
Mahesh
About Question enthuware.ocpjp.v8.2.1812 :
Moderators: Site Manager, fjwalraven
-
- Posts: 11
- Joined: Mon Jan 18, 2016 4:35 pm
- Contact:
-
- Site Admin
- Posts: 10388
- Joined: Fri Sep 10, 2010 9:26 pm
- Contact:
Re: About Question enthuware.ocpjp.v8.2.1812 :
Yes, it is possible. Generally, you can assume that whenever a question asks you to compile and run a program, it is asking you to do so from the command line. So the console will be available.
Even so, the problem statement has now been updated to say, "What will happen when it is compiled and run from the command line?" This should take care of the ambiguity.
thank you for your feedback!
Paul.
Even so, the problem statement has now been updated to say, "What will happen when it is compiled and run from the command line?" This should take care of the ambiguity.
thank you for your feedback!
Paul.
Who is online
Users browsing this forum: No registered users and 5 guests