Question 1
Which design pattern is used to decouple presentation from core data access functionality?
❍ A. Business Delegate
❍ B. Data Access Object
❍ C. Model-View-Controller
❍ D. Value Object
Question 2
Which design pattern is used to minimize coupling between presentation-tier clients and the application service API?
❍ A. Business Delegate
❍ B. Data Access Object
❍ C. Model-View-Controller
❍ D. Value Object
Question 2)
What will happen if you try to compile and run the following code
public class MyClass {
public static void main(String arguments[]) {
amethod(arguments);
}
public void amethod(String[] arguments) {
System.out.println(arguments);
System.out.println(arguments[1]);
}
}
1) error Can 't make static reference to void amethod.
2) error method main not correct
3) error array must include parameter
4) amethod must be declared with String
Question 5
Read the following code snippet.
<taglib>
<taglib-uri>
http://www.yourcompany.com/yourTagLibrary
</taglib-uri>
<taglib-location>
/WEB-INF/yourTagLibrary.tld
</taglib-location>
</taglib>
What statement applies to this code snippet?
❍ A. The tablib element of the deployment descriptor is required if you use a taglib directive in a JSP page that references a TLD by name (indirectly) rather than by location (directly).
❍ B. This tag goes into the WEB-INF/myApplication/web.xml file.
❍ C. This definition is incorrect because the taglib-uri should have been uri.
❍ D. This definition is incorrect because the taglib should have been tag.