This week's book giveaway is in the OCPJP forum. We're giving away four copies of OCA/OCP Java SE 7 Programmer I & II Study Guide and have Kathy Sierra & Bert Bates on-line! See this thread for details.
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
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--
Joined: Oct 23, 2003
Sorry for this. Where are the answers to brain power in the book. I could not find it as yet