• Post Reply Bookmark Topic Watch Topic
  • New Topic

Why these imports in AdviceClient class?

 
Gowher Naik
Ranch Hand
Posts: 643
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Is there any Errata for Head First EJB?
In HFEJB page no-57 in AdviceClient.java i found few imports.

import javax.ejb.*;
import java.rmi.*;

i am not able to understand why above imports has been added to AdviceClient class.

Thanks
 
Rajan Murugan
Ranch Hand
Posts: 182
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Try to compile the code without the imports.
 
Gowher Naik
Ranch Hand
Posts: 643
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
i have tried without these imports and it compiles successfully.
So why are these imports there?
 
Gravity is a harsh mistress. But this tiny ad is pretty easy to deal with:
the new thread boost feature: great for the advertiser and smooth for the coderanch user
https://coderanch.com/t/674455/Thread-Boost-feature
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!