This week's book giveaway is in the OCAJP forum.
We're giving away four copies of Programmer's Guide to Java SE 8 Oracle Certified Associate (OCA) and have Khalid A Mughal & Rolf W Rasmussen on-line!
See this thread for details.
Win a copy of Programmer's Guide to Java SE 8 Oracle Certified Associate (OCA) this week in the OCAJP forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

HFSJ doubt

 
Nishant Dhar
Greenhorn
Posts: 26
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
On page 355

the bang box mentions that I get an exception if type= Foo.Employee and class is Foo.person

does it actually mean an exception or a compile time error.
I think we should get a compile time error since the compilation rules are violated.
correct me if iam wrong !!

nishant
 
Cai DongShan
Ranch Hand
Posts: 102
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Yes, you are right. The servlet won't be generated.
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic