Cheating questions for SCWCD (1)
While preparing SCWCD, I got a list of hard questions that are easy to make mistakes.
1. Which of the following statements regarding action are correct?
- It must have an ‘id’ attribute.
- If ‘beanName’ attribute is present, ‘type’ must also be present.
- It must have a ‘scope’ attribute.
- If ‘class’ attribute is present, ‘type’ must also be present.
1,2 are correct.
Explanation:
Here are the rules:
- id is mandatory.
- scope is optional.
- The three attributes: class, type and beanName can occur only as one of the following four combination and at least one of these four combinations must be there in a useBaen tag:
- a. class
- b. type
- c. class and type
- d. beanName and type
Comments(0)