SCJP Questions And Answers

Home| Forums | Join Google Group | Join Yahoo Group | Jobs
Get custom programming done at GetAFreelancer.com!
Earn Money
  Trading Forex Online
  Paramount Airways
  Free Data Recovery
 Cargo
 Job Portal
  HSBC Investment
 Management
 Cheap Web Hosting
  Make Trip
  Cheap Air Travel
 Leisure Hotel
  Free Air Travel
  Mutual Fund Informations
   Cheapest Cellular Plan
 Free Sexy Indians
  Call Center Software
  Hot Indian
Programming Help | Homework Help | Counseling
Astrology Advice | Tarot Advice | Parenting
Dating Advice | Love Advice | Divorce Advice
Legal Advice | Debt Advice | Career Advice
- 8 - 3. protected float getVar ( ) ( return x;)
4. }
5. class Subclass extends BaseClass (
6. private float x = 2.0f;
7. //insert code here
8. )

Which two are valid examples of method overriding? (Choose Two)
A. Float getVar ( ) { return x;} B. Public float getVar ( ) { return x;} C. Float double getVar ( ) { return x;} D. Public float getVar ( ) { return x;} E. Public float getVar (float f ) { return f;}

Answer: B, D



Question No: 11
Which two demonstrate an "is a" relationship? (Choose Two)
A. public interface Person { } public class Employee extends Person { } B. public interface Shape { } public class Employee extends Shape { } C. public interface Color { } public class Employee extends Color { } D. public class Species { } public class Animal (private Species species;) E. interface Component { } Class Container implements Component ( Private Component[ ] children;
)

Answer: D, E



Question No: 12
Which statement is true?
A. An anonymous inner class may be declared as final. B. An anonymous inner class can be declared as private. C. An anonymous inner class can implement multiple interfaces.
Earn Money
  Trading Forex Online
  Paramount Airways
  Free Data Recovery
 Cargo
 Job Portal
  HSBC Investment
 Management
 Cheap Web Hosting
  Make Trip
  Cheap Air Travel
 Leisure Hotel
  Free Air Travel
  Mutual Fund Informations
   Cheapest Cellular Plan
 Free Sexy Indians
  Call Center Software
  Hot Indian