Java Practice Test – 4 Posted by Editor Date 2022-09-28 Comments 0 comment Welcome to your Java Practice Test - 4 When destroy() method of a filter is called? a) The destroy() method is called only once at the end of the life cycle of a filter b) The destroy() method is called after the filter has executed doFilter method c) The destroy() method is called only once at the begining of the life cycle of a filter d) The destroyer() method is called after the filter has executed SessionIDs are stored in cookies. a) True b) False How is the dynamic interception of requests and responses to transform the information done? a) servlet container b) servlet config c) servlet context d) servlet filter Which method is used to get three-letter abbreviation for locale’s country in servlets? a) Request.getISO3Country() b) Locale.getISO3Country() c) Response.getISO3Country() d) Local.retrieveISO3Country() Which tag should be used to pass information from JSP to included JSP? a) Using tag b) Using tag c) Using tag d) Using tag Which of the following is used for session migration? a) Persisting the session in database b) URL rewriting c) Create new database connection d) Kill session from multiple sessions Which of the below is not a session tracking method? a) URL rewriting b) History c) Cookies d) SSL sessions an application is instance of which Interface? a) javax.servlet.Application b) javax.servlet.HttpContext c) javax.servlet.Context d) javax.servlet.ServletContext Which page directive should be used in JSP to generate a PDF page? a) contentType b) generatePdf c) typePDF d) contentPDF Which of the following is used to limit the number of rows returned? a) setMaxRows(int i) b) setMinRows(int i) c) getMaxrows(int i) d) getMinRows(int i) Time is Up! Time's up Share: Editor Previous post UI Technologies Practice Test - 3 2022-09-28 Next post Java Practice Test - 5 2022-09-28 You may also like Oracle Tutorial Videos 8 April, 2023 Spring Tutorial Videos 8 April, 2023 Ui Technologies Tutorial Videos 1 April, 2023