aspose file tools*
The moose likes Programmer Certification (SCJP/OCPJP) and the fly likes classes Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Certification » Programmer Certification (SCJP/OCPJP)
Bookmark "classes" Watch "classes" New topic
Author

classes

Taylor
Greenhorn

Joined: Oct 01, 1999
Posts: 12
1) which variables should you use to declare the class Employee.
Employee is a Person, has a Date of employement, Vector with appointment Dates, and ID integer number.
What can you use to declare the member variables of this class ?
A.Person
B.int
C.Date
D.Object
E.Employee
F.Vector
I choosed B,C,F
2) which is true about Threads:
A.if suspended cannot be restarted
B.stop running, if another Thread with heigher Porperties is getting runnable.
C.stop running, if the Thread starts another Thread
D.if dead cannot be restarted
E.if interreppted stop running
F.I cannot remember
I choosed B,D,E
(a classic question, but I had 2-3 question about threads in this style)
3) 2 Questions in this style:
You have the class A, that is used from many developement teams (or something like that), and is a subclass of another class B and implements I ... and you have many words:
- public
- protected
- private
- extends
- implements
- A
- class
- B
- I
- other words...
write the declaration of the class
fill in the blanks
paul wheaton
Trailboss

Joined: Dec 14, 1998
Posts: 20691
    ∞

1) you are correct.
2) "suspended" is a 1.1 thing and not a 1.2 thing. Therefore, this question is outdated.
3) public class A extends B implements I

permaculture Wood Burning Stoves 2.0 - 4-DVD set
Tony Alicea
Desperado
Sheriff

Joined: Jan 30, 2000
Posts: 3222
    
    5
>2) "suspended" is a 1.1 thing and not a 1.2 thing. Therefore, this question is outdated.
Well, Thread.suspend() IS supported in Java 2. It is also deprecated, but that means something else, right? SO as long as a method compiles and executes in Java 2, I consider it "fair game" for questions...


Tony Alicea
Senior Java Web Application Developer, SCPJ2, SCWCD
paul wheaton
Trailboss

Joined: Dec 14, 1998
Posts: 20691
    ∞

Deprecated stuff isn't on the SCJP2 exam.
 
It is sorta covered in the JavaRanch Style Guide.
 
subject: classes