Page 1 of 1

About Question com.enthuware.ets.scjp.v6.2.663 :

Posted: Sat Jan 19, 2013 6:53 pm
by edenir
Hi there!

I don't understood this question that include this answer:

Code: Select all

int friendly, Vector;
The answer wants to know if it is a valid declaration, and it is.

But I don't understood this declaration above.

Code: Select all

int friendly
is ok for me, but

Code: Select all

int friendly, Vector;
I have no idea.

Re: About Question com.enthuware.ets.scjp.v6.2.663 :

Posted: Sat Jan 19, 2013 9:06 pm
by admin
edenir wrote:

Code: Select all

int friendly
is ok for me, but

Code: Select all

int friendly, Vector;
I have no idea.
Both - friendly and Vector - are variables of type int. Don't confuse with the class Vector. The compiler is able to figure out that you are just declaring two int variables and the variable named Vector has nothing to do with java.util.Vector or any other class.

HTH,
Paul.