![]() Related Questions In the init(ServletConfig) method of Servlet life cycle, what method can be used to access the ServletConfig object ? (a) getServletInfo()(b) getInitParameters()(c) getServletConfig() EjbCreate() method of CMP bean returns (a) null (b) Primary Key class (c) Home Object (d) Remote Object (a) Explanation: ejbCreate() method of BMP bean returns the Primary Key, where as ejbCreate() method of CMP bean returns null. (b) Latest Answer : Runnable Interface ... Which is not allowed in EJB programming ? (a) Thread Management (b) Transient Fields (c) Listening on a Socket A servlet implements Single Thread model public class BasicServlet extends HttpServlet implements SingleThreadModel { int number = 0; public void service(HttpServletRequest req, HttpServletResponse res) { } } Which is thread safe ? (a) Only the variable num (b) Only the HttpServletRequest object req (c) Both Which is thread safe ? (a) Only the variable num (b) Only the HttpServletRequest object req (c) Both the variable num & the HttpServletRequest object req 1. what are the different types of design patterns in core java ?2. what do we mean by value object design pattern ? Read Answers (2) | Asked by : ranjan 1.What will be the output?boolean a = false if (a=true){ System.out.ptinln("Hello");}else{ System.out.ptinln("GoodBye");}2. Hashmap , hashset , ArrayList(true, true, false)3.Which need Latest Answer : Compiler error!!!Technically class name should be Upper but its upperthen it should have been initialized as upper var = new upper() but U is in upper case. ... Read Answers (3) | Asked by : Vartika
Sponsored Links
| ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||