This week's book giveaway is in the OO, Patterns, UML and Refactoring forum. We're giving away four copies of Refactoring for Software Design Smells: Managing Technical Debt and have Girish Suryanarayana, Ganesh Samarthyam & Tushar Sharma on-line! See this thread for details.
These are some of the Mock Exam Questions. I am not sure about the answers. Can any one Pl explain what the correct answers could be.
1. When are transactions propagated from a Web component (JSP or Servlet) to an Enterprise Java Bean (EJB) component?
A. Only when the Web component starts the transaction using the UserTransaction interface B. When the Web component starts the transaction using the UserTransaction interface or when transactions are demarcated in the component deployment descriptor C. When the Web component starts the transaction using the Transaction interface D. Only when the Web component is declared to use container managed transactions E. When transaction demarcations are declared in the Web component deployment descriptor
1. Answer A. ------------------- 2. How do you access tag body content from a JSP Custom Tag? A. getPageContext().getString() B. body.getString(1) C. bodyContent.getString() D. getPageContext.getReader() E. getBodyContent()