Hi,
Why the answer option "The program will fail to compile, since the argument args passed to the static method main cannot be passed on to the non-static method func." has the comment "It certainly can be."?
It is confuse considering the correct answer is "The program will compile and run successfully."
thanks and regards.
About Question enthuware.ocajp.i.v8.2.1131 :
Moderator: admin
-
- Posts: 1
- Joined: Mon Jan 18, 2016 9:11 am
- Contact:
-
- Site Admin
- Posts: 10046
- Joined: Fri Sep 10, 2010 9:26 pm
- Contact:
Re: About Question enthuware.ocajp.i.v8.2.1131 :
The comment is referring to the claim made in that option, which is, "the argument args passed to the static method main cannot be passed on to the non-static method func". The comment is trying to convey that this claim is incorrect because the argument args passed to the static method can certainly be passed on to the non-static method func.
HTH,
Paul.
HTH,
Paul.
If you like our products and services, please help us by posting your review here.
Who is online
Users browsing this forum: No registered users and 87 guests