Win a copy of Think Java: How to Think Like a Computer Scientist this week in the Java in General forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

Core Java Query & Struts Query

 
Ggaurav Gupta
Greenhorn
Posts: 9
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi i want to know the following Questions

Can a class etends interface

can a class implements another class


Diffrence between various form beans in struts1

ActionForm , ValidatroForm , ValidatorActionForm
 
vijay raghuvanshi
Greenhorn
Posts: 5
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi Ggaurav,
Here is the answer your first two questions. I do not hav much idea about Struts.
1. In java a Class always inherit an interface only by using 'implements' keyword not by 'extends'.
2. A class always inherit another class only by using 'extends' keyowrd.
But if an Interface wants to inherit another interface then use 'extends'

Hope it answer your query.
Thanks!!
 
David Newton
Author
Rancher
Posts: 12617
IntelliJ IDE Ruby
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Please ask your Struts questions in the Struts forum.

The answer lies in the documentation--consider reading it first, then asking specific questions.
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic