Page 1 of 1
About Question enthuware.ocpjp.v8.2.1894 :
Posted: Fri May 12, 2017 12:34 pm
by lenalena
Hi! Please, explain what is meant by "automatic variables" in this question.
Thank you!
Re: About Question enthuware.ocpjp.v8.2.1894 :
Posted: Fri May 12, 2017 9:25 pm
by admin
"automatic variables" is just another name for "local variables" that are defined inside a method. You may read more about them here:
http://stackoverflow.com/questions/2672 ... ic-in-java
Re: About Question enthuware.ocpjp.v8.2.1894 :
Posted: Sat May 13, 2017 1:05 pm
by lenalena
Got it, thanks!
Re: About Question enthuware.ocpjp.v8.2.1894 :
Posted: Wed Oct 28, 2020 4:24 pm
by Deleted User 6318
two things:
1) I think you cannot use var with int like here, right?
2) "all automatic variables" in my opinion suggests also automatic variables from
other methods, which does not seem to be true
Re: About Question enthuware.ocpjp.v8.2.1894 :
Posted: Fri Oct 30, 2020 12:48 am
by admin
1. You are right. int should be removed from there.
2. All sentences of explanatory texts are cannot always be extremely precise, otherwise, it will be the same as the specification! I think in the given context, it is quite clear what it means.