Advanced Java Questions & Answers – Annotations

This set of Advanced Java Multiple Choice Questions & Answers (MCQs) focuses on “Annotations”. 1. Which version of Java introduced annotation? a) Java 5 b) Java 6 c) Java 7 d) Java 8 2. Annotation type definition looks similar to which of the following? a) Method b) Class c) Interface d) Field 3. Which of … Read more

advertisement

Advanced Java Questions & Answers – Application Lifecycle – Ant, Maven and Jenkins

This set of Advanced Java Multiple Choice Questions & Answers (MCQs) focuses on “Application Lifecycle – Ant, Maven and Jenkins”. 1. Which of below is not a dependency management tool? a) Ant b) Maven c) Gradle d) Jenkins 2. Which of the following is not a maven goal? a) clean b) package c) install d) … Read more

advertisement

Advanced Java Questions & Answers – AutoCloseable, Closeable and Flushable Interfaces

This set of Advanced Java Multiple Choice Questions & Answers (MCQs) focuses on “AutoCloseable, Closeable and Flushable Interfaces”. 1. Autocloseable was introduced in which Java version? a) java SE 7 b) java SE 8 c) java SE 6 d) java SE 4 2. What is the alternative of using finally to close resource? a) catch … Read more

advertisement

Advanced Java Questions & Answers – Reflection API

This set of Advanced Java Multiple Choice Questions & Answers (MCQs) focuses on “Reflection API”. 1. What are the components of a marker interface? a) Fields and methods b) No fields, only methods c) Fields, no methods d) No fields, No methods 2. Which of the following is not a marker interface? a) Serializable b) … Read more

advertisement

Advanced Java Questions & Answers – JSP Elements

This set of Advanced Java Multiple Choice Questions & Answers (MCQs) focuses on “JSP Elements”. 1. Which one of the following is correct for directive in JSP? a) <%@directive%> b) <%!directive%> c) <%directive%> d) <%=directive%> 2. Which of the following action variable is used to include a file in JSP? a) jsp:setProperty b) jsp:getProperty c) … Read more

advertisement

Advanced Java Questions & Answers – JSP

This set of Advanced Java Multiple Choice Questions & Answers (MCQs) focuses on “JSP”. 1. Which page directive should be used in JSP to generate a PDF page? a) contentType b) generatePdf c) typePDF d) contentPDF 2. Which tag should be used to pass information from JSP to included JSP? a) Using <%jsp:page> tag b) … Read more

advertisement

Advanced Java Questions & Answers – Session Management

This set of Advanced Java Multiple Choice Questions & Answers (MCQs) focuses on “Session Management”. 1. 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 2. Which of the below is not a session tracking … Read more

advertisement

Advanced Java Questions & Answers – Servlet

This set of Advanced Java Multiple Choice Questions & Answers (MCQs) focuses on “Servlet”. 1. How constructor can be used for a servlet? a) Initialization b) Constructor function c) Initialization and Constructor function d) Setup() method 2. Can servlet class declare constructor with ServletConfig object as an argument? a) True b) False 3. What is … Read more

advertisement

Advanced Java Questions & Answers – Client and Server

This set of Advanced Java Multiple Choice Questions & Answers (MCQs) focuses on “Client and Server”. 1. How does applet and servlet communicate? a) HTTP b) HTTPS c) FTP d) HTTP Tunneling 2. In CGI, process starts with each request and will initiate OS level process. a) True b) False 3. Which class provides system … Read more

advertisement

Advanced Java Questions & Answers – Web application

This set of Advanced Java Multiple Choice Questions & Answers (MCQs) focuses on “Web application”. 1. Servlet are used to program which component in a web application? a) client b) server c) tomcat d) applet 2. Which component can be used for sending messages from one application to another? a) server b) client c) mq … Read more

advertisement
Subscribe to our Newsletters (Subject-wise). Participate in the Sanfoundry Certification contest to get free Certificate of Merit. Join our social networks below and stay updated with latest contests, videos, internships and jobs!

Youtube | Telegram | LinkedIn | Instagram | Facebook | Twitter | Pinterest
Manish Bhojasia - Founder & CTO at Sanfoundry
Manish Bhojasia, a technology veteran with 20+ years @ Cisco & Wipro, is Founder and CTO at Sanfoundry. He lives in Bangalore, and focuses on development of Linux Kernel, SAN Technologies, Advanced C, Data Structures & Alogrithms. Stay connected with him at LinkedIn.

Subscribe to his free Masterclasses at Youtube & discussions at Telegram SanfoundryClasses.