aspose file tools
The moose likes Programmer Certification (SCJP/OCPJP) and the fly likes jxam Big Moose Saloon
  Search | Java FAQ | Recent Topics
Register / Login


Win a copy of The Mikado Method this week in the Agile and other Processes forum!
JavaRanch » Java Forums » Certification » Programmer Certification (SCJP/OCPJP)
Reply Bookmark "jxam" Watch "jxam" New topic
Author

jxam

satishind Reddy
Ranch Hand

Joined: Oct 17, 2000
Posts: 33
This question i got from jxam.
Employee is a person. For every employee, we keep a vector with the working hours, an integer for the salary and a variable that can be true or false whether or not the employee has a company car.

Indicate which of the following would be used to define the class members.
Given Options
a) Vector //ok
b) Employee
c) Object
d) boolean //ok
e) int //ok
but given answer is 'a' only can any one throw light on this...
Regards
satish
Jane Griscti
Ranch Hand

Joined: Aug 30, 2000
Posts: 3141
Hi satishind,
The question is not worded very well. When I first read it, I interpreted as you did. There would be one var of Vector type to hold hour objects, a second var of int type for salary and a third var of boolean type to hold the car info.
Based on the answer given, think they meant to imply that the Vector would contain all three objects: working hours, salary and car flag.
Hope that helps.
------------------
Jane


Jane Griscti
SCJP, Co-author Mike Meyers' Java 2 Certification Passport
Serge Plourde
Ranch Hand

Joined: Jun 23, 2000
Posts: 140
I believe you're right, Jane.
satishind Reddy
Ranch Hand

Joined: Oct 17, 2000
Posts: 33
Thanks Jane.
Hope we will not get this type of questions in real exam.
any how Thanks once again.
Regards
Satish
 
I agree. Here's the link: http://ej-technologies/jprofiler - if it wasn't for jprofiler, we would need to run our stuff on 16 servers instead of 3.
 
subject: jxam
 
Similar Threads
Jxam question
Jxam
Jxam
JXAM
Q on Jxam