Win a copy of Java 9 Modularity: Patterns and Practices for Developing Maintainable Applications this week in the Java 9 forum!
  • Post Reply Bookmark Topic Watch Topic
  • New Topic

Why these imports in AdviceClient class?  RSS feed

 
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?
 
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!