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

All the posts and topics that contain only an error report will be moved here after the error is corrected. This is to ensure that when users view a question in ETS Viewer, the "Discuss" button will not indicate the presence of a discussion that adds no value to the question.

Moderators: Site Manager, fjwalraven

Post Reply
ETS User

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

Post by ETS User »

This is the question that includes the picture illustrating an object hierarchy.
Consider the following class hierarchy shown in the image. (B1 and B2 are subclasses of A and C1, C2 are subclasses of B1)
Each answer option includes a "objectOfxx.m1(). What is "objectOf"? I've never seen this before, and, if it is a valid java keyword, are you sure it is covered on the SCJP6 exam?

Thank you

Site Admin
Posts: 8958
Joined: Fri Sep 10, 2010 9:26 pm

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

Post by admin »

Names like objectOfC1 as in the given code: objectOfC1.m1(); are variable names. They just signify that they point to an object of the given class name. For example, in code "objectOfC1.m1();" objectOfC1 points to an object of class C1.
But you are right, it would be better if the question makes it even clearer by containing a statement to that effect in the question itself. Will be fixed asap.

thank you,
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 1 guest