41. Which design pattern ensures that only one object of particular class gets created? A. Singleton pattern B. Filter pattern C. State pattern D. Bridge pattern Answer & Solution Discuss in Board Save for Later Answer & Solution Answer: Option A No explanation is given for this question Let's Discuss on Board
42. Is design pattern a logical concept. A. True B. False Answer & Solution Discuss in Board Save for Later Answer & Solution Answer: Option A No explanation is given for this question Let's Discuss on Board
43. Which of the following is used to call stored procedure? A. Statement B. PreparedStatement C. CallableStatment D. CalledStatement Answer & Solution Discuss in Board Save for Later Answer & Solution Answer: Option C No explanation is given for this question Let's Discuss on Board
44. Which of the following is correct error when loading JAR file with duplicate name? A. java.io.NullPointerException B. java.lang.ClassNotFound C. java.lang.ClassFormatError D. java.lang.DuplicateClassError Answer & Solution Discuss in Board Save for Later Answer & Solution Answer: Option C No explanation is given for this question Let's Discuss on Board
45. Which of the below is not a valid classification of design pattern? A. Creational patterns B. Structural patterns C. Behavioural patterns D. Java patterns Answer & Solution Discuss in Board Save for Later Answer & Solution Answer: Option D No explanation is given for this question Let's Discuss on Board
46. Which attribute is used to specify initialization method? A. init B. init-method C. initialization D. initialization-method Answer & Solution Discuss in Board Save for Later Answer & Solution Answer: Option B No explanation is given for this question Let's Discuss on Board
47. Which of the following is advantage of using PreparedStatement in Java? A. Slow performance B. Encourages SQL injection C. Prevents SQL injection D. More memory usage Answer & Solution Discuss in Board Save for Later Answer & Solution Answer: Option C No explanation is given for this question Let's Discuss on Board
48. Which of the below is not a valid design pattern? A. Singleton B. Factory C. Command D. Java Answer & Solution Discuss in Board Save for Later Answer & Solution Answer: Option D No explanation is given for this question Let's Discuss on Board
49. Which of the following is not an Enterprise Beans type? A. Doubleton B. Singleton C. Stateful D. Stateless Answer & Solution Discuss in Board Save for Later Answer & Solution Answer: Option A No explanation is given for this question Let's Discuss on Board
50. Which of the following is not a feature of Beans? A. Introspection B. Events C. Persistence D. Serialization Answer & Solution Discuss in Board Save for Later Answer & Solution Answer: Option D No explanation is given for this question Let's Discuss on Board