Win a copy of The Little Book of Impediments (e-book only) this week in the Agile and Other Processes forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

brain power

 
manish ahuja
Ranch Hand
Posts: 312
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hey All

Sorry if this question sounds a bit dumb to all the java(EJB) experts around.
This is the regarding the 1st brain power in HeadFirst EJB. (where it is mentioned it is more of Java knowledge rather than EJB knowledge)

i.e. How do we force the compiler to check whether the methods in the bean class do implement the method in the component interface even though our bean class does not implement the component interface.

Can anybody take a stab at this. If possible do illustrate with an sample case

Bye
 
Dale Seng
Ranch Hand
Posts: 275
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
You needn't worry about answering that one right away... the answer is given later in the book. The technique would be to create an interface, and have both implement it. This would put the compiler back in the position to make certain that both implementations had the same signatures.
--Dale--
 
manish ahuja
Ranch Hand
Posts: 312
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Dale

Sorry for this. Where are the answers to brain power in the book. I could not find it as yet
 
Eusebio Floriano
Ranch Hand
Posts: 237
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
It�s on page 86.
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic