• Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other Pie Elite all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Jeanne Boyarsky
  • Ron McLeod
  • Paul Clapham
  • Liutauras Vilda
Sheriffs:
  • paul wheaton
  • Rob Spoor
  • Devaka Cooray
Saloon Keepers:
  • Stephan van Hulst
  • Tim Holloway
  • Carey Brown
  • Frits Walraven
  • Tim Moores
Bartenders:
  • Mikalai Zaikin

classes

 
Greenhorn
Posts: 12
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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
 
Trailboss
Posts: 23780
IntelliJ IDE Firefox Browser Java
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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
 
Desperado
Posts: 3226
5
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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
Posts: 23780
IntelliJ IDE Firefox Browser Java
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Deprecated stuff isn't on the SCJP2 exam.
 
reply
    Bookmark Topic Watch Topic
  • New Topic