21.What is default scope of bean in Spring framework? The default scope of bean is Singleton for Spring framework.
Interview Questions and Answers For Freshers
- Interview Questions and AnswersTechnical Interview Questions and Answers
- Interview Questions and AnswersTechnical Interview Questions and Answers
Spring Interview Questions and Answers For Freshers Part-2
by Sby S11.What are types of IoC containers? Explain them. There are two types of IoC containers: Bean Factory container: This is the simplest container providing basic support for DI .The BeanFactory …
- Interview Questions and AnswersTechnical Interview Questions and Answers
Spring Interview Questions and Answers For Freshers Part-1
by Sby S1.What is Spring? Spring is an open source development framework for enterprise Java. The core features of the Spring Framework can be used in developing any Java application, but there …
- Interview Questions and AnswersServletsTechnical Interview Questions and Answers
Servlets Interview Questions and Answers For Freshers Part-5
by Sby S41.How to create a session in servlet? You would get HttpSession object by calling the public method getSession() of HttpServletRequest, as below: // Create a session object if it is …
- Interview Questions and AnswersServletsTechnical Interview Questions and Answers
Servlets Interview Questions and Answers For Freshers Part-4
by Sby S31.Can multiple filters be configured? Yes. 32.Can filtering be done in an ordered way? If so then how to achieve it? Yes. The order of filter-mapping elements in web.xml determines …
- Interview Questions and AnswersServletsTechnical Interview Questions and Answers
Servlets Interview Questions and Answers For Freshers Part-3
by Sby S21.How to send an authentication error from a servlet? We can use setStatus(statuscode) method of HttpServletResponse to send an authentication error. // Set error code and reason. response.sendError(407, “Need authentication!!!” …
- Interview Questions and AnswersServletsTechnical Interview Questions and Answers
Servlets Interview Questions and Answers For Freshers Part-2
by Sby S11.For what purpose destroy() method of a servlet is used? This method gives your servlet a chance to close database connections, halt background threads, write cookie lists or hit counts …
- Interview Questions and AnswersServletsTechnical Interview Questions and Answers
Servlets Interview Questions and Answers For Freshers Part-1
by Sby S1.What are Servlets? Java Servlets are programs that run on a Web or Application server and act as a middle layer between a request coming from a Web browser or …
- Interview Questions and AnswersRESTFULTechnical Interview Questions and Answers
RESTFUL Web Services Interview Questions and Answers Part-5
by Sby S41.What HTTP Status Code 200 states? It means, OK, shows success.
- Interview Questions and AnswersRESTFULTechnical Interview Questions and Answers
RESTFUL Web Services Interview Questions and Answers Part-4
by Sby S31.Which header of HTTP response provides control over caching? Cache-Control is the primary header to control caching.