• Post Reply Bookmark Topic Watch Topic
  • New Topic

Another mistake in JWeb+ ??  RSS feed

See El
Ranch Hand
Posts: 44
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Take a look at the following question :
Question ID :1000049375480
Consider the following class:
public class MyHSAListener extends HttpSessionAttributeListener
public void attributeAdded(HttpSessionBindingEvent e){ }
public void attributeRemoved(HttpSessionBindingEvent e){ }
Which of the following statements are correct?
How come a class - MyHSAListener can extends an interface - HttpSessionAttributeListener ???
And there are more of this kind of mistake in JWeb+ (i.eg. missing semicolon, % etc which are essential in JSP thus cause misleading sometime.
It is sorta covered in the JavaRanch Style Guide.
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!