IntelliJ Java IDE
The moose likes Mock Exam Errata and the fly likes Mind Q Question Big Moose Saloon
  Search | Java FAQ | Recent Topics
Register / Login
JavaRanch » Java Forums » Professional Certification » Mock Exam Errata
Reply Bookmark "Mind Q Question" Watch "Mind Q Question" New topic
Author

Mind Q Question

Carl Trusiak
Sheriff

Joined: Jun 13, 2000
Posts: 3340
In Mind Q (at least the version giving with the Oracle Self Learning CDs) is the following question
Child is a subclass of Super, the following are a legal declarations.
Super super = new Child();
Child child = new Child();
The answer given is true but, I believe it should be false since super is a keyword and cannot be used as an idenitifier. If they had used _super or any other modification, it would be true.

I Hope This Helps
Carl Trusiak, SCJP2, SCWCD
Jim Yingst
Wanderer
Sheriff

Joined: Jan 30, 2000
Posts: 18652
Yup. Good call.


"I'm not back." - Bill Harding, Twister
john shen
Greenhorn

Joined: Jul 23, 2000
Posts: 14
jim, i wonder if you could comment on this observation of mine. in cases like this in real exam, would it be safer to assume that the objective of the question is to test you the concept of inheritance and thus expect you to pick the one shown here, even if it is actually wrong? i hope nobody runs into this type of dilemma, but someone could, right? thanks.
 
 
subject: Mind Q Question
 
Threads others viewed
Inverse Question
casting
Protected members inheritance
Mind Q question 34.
oo design (child behavior and abstract super-class)
WebSphere development made easy
without the weight of IBM tools
http://www.myeclipseide.com

cast iron skillet 49er

more from paul wheaton's glorious empire of web junk: cast iron skillet diatomaceous earth rocket mass heater sepp holzer raised garden beds raising chickens lawn care CFL flea control missoula heat permaculture