Win a copy of Kotlin in Action this week in the Kotlin forum!
  • Post Reply Bookmark Topic Watch Topic
  • New Topic

Doubt regarding one of Ethnuwhere questions?  RSS feed

 
Khaled Mahmoud
Ranch Hand
Posts: 361
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
In one of the ethnuware simulators :
The following option is incorrect :

A web application may overide classes in javax.* package.

Why is this option wrong??

A web application can override the HttpServlet class.
 
Joe Harry
Ranch Hand
Posts: 10128
3
Eclipse IDE Mac PPC Ubuntu
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I guess the answer given in the mock is correct. Overriding in javax.* means a webapp will be able to override all the classes in the javax package. Does your webapp or as a matter of fact, any webapp overrides classes in javax.crypto?? or javax.imageio?? or javax.management?? or javax.naming. I guess the answer given by the mock exam is correct.
 
It is sorta covered in the JavaRanch Style Guide.
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!