Win a copy of Java Mock Exams (software) this week in the Programmer Certification (OCPJP) forum!
  • Post Reply Bookmark Topic Watch Topic
  • New Topic

Doubt: programming restriction

 
Mina Syal
Ranch Hand
Posts: 31
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hello,

Specs says following:
� The enterprise bean must not attempt to define a class in a package.

Can anyone explain this more. As I don't understand this restriction we generaly define our classes under packages example: ...advice\src\headfirst\AdviceHome.class.

Thanks,
Mina.
 
Valentin Crettaz
Gold Digger
Sheriff
Posts: 7610
 
Mina Syal
Ranch Hand
Posts: 31
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hello,

Thanks for providing link... but I didn't get any satisfactory answer there... can you pls give me just one or two lines of explaination...

Thanks,
Mina.
 
Valentin Crettaz
Gold Digger
Sheriff
Posts: 7610
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Basically, what this means is that you are not allowed to use the ClassLoader.defineClass() and ClassLoader.definePackage() methods within your bean classes. In other terms, you are not allowed to dynamically create new class definitions at runtime.
 
Mina Syal
Ranch Hand
Posts: 31
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Oh gr8...

Thanks a lot :-)

Mina.
 
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!