Win a copy of Functional Reactive Programming this week in the Other Languages forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

classes

 
Taylor
Greenhorn
Posts: 12
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
Pie
Posts: 21736
Firefox Browser IntelliJ IDE Java
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
 
Tony Alicea
Desperado
Sheriff
Posts: 3226
5
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
>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...
 
paul wheaton
Trailboss
Pie
Posts: 21736
Firefox Browser IntelliJ IDE Java
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Deprecated stuff isn't on the SCJP2 exam.
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic