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

Help and support on OCA OCP Java Programmer Certification Questions
1Z0-808, 1Z0-809, 1Z0-815, 1Z0-816, 1Z0-817

Moderator: admin

Post Reply
edenir
Posts: 2
Joined: Sat Jan 19, 2013 6:45 pm
Contact:

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

Post 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.

admin
Site Admin
Posts: 10046
Joined: Fri Sep 10, 2010 9:26 pm
Contact:

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

Post 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.
If you like our products and services, please help us by posting your review here.

Post Reply

Who is online

Users browsing this forum: No registered users and 93 guests