220+ Advanced JAVA Solved MCQs
Which of these package contains classes and interfaces for networking?
In the following URL, identify the protocol identifier? https://mcqmate.com:8080/course.php
Which of the following protocol follows connection less service?
Which of the following statement is NOT true?
Which of the following statement is TRUE?
Which of the following method call is valid to obtain the server's hostname by invoking an applet?
The server listens for a connection request from a client using which of the following statement?
The client requests a connection to a server using which of the following statement?
To connect to a server running on the same machine with the client, which of the following cannotbe used for the hostname?
In the socket programming, for an IP address, which can be used to find the host name and IP address of a client/ server?
To create an InputStream on a socket, say s, which of the following statement is necessary?
Which of the following protocols is/are for splitting and sending packets to an address across a network?
Which of these is a protocol for breaking and sending packets to an address across a network?
Which of these class is used to encapsulate IP address and DNS?
Which of the following type of JDBC driver, is also called Type 2 JDBC driver?
Which of the following type of JDBC driver, is also called Type 1 JDBC driver?
Which of the following holds data retrieved from a database after you execute an SQL query using Statement objects?
Which of the following is not a valid type of ResultSet?
Which of the following type of JDBC driver, uses database native protocol?
What is JDBC?
Which of the following manages a list of database drivers in JDBC?
Which of the following type of JDBC driver should be used if your Java application is accessing multiple types of databases at the same time?
Which of the following is correct about JDBC?
Which of the following step establishes a connection with a database?
Which of the following is true about JDBC?
How many Result sets available with the JDBC 2.0 core API?
Which method is used to establish the connection with the specified url in a Driver Manager class?
Which driver Network connection is indirect that a JDBC client makes to a middleware process that acts as a bridge to the DBMS server?
JDBC RowSet is the wrapper of ResultSet,It holds tabular data like ResultSet but it is easy and flexible to use.
The ResultSet.next method is used to move to the next row of the ResultSet, making it the current row.
Which JDBC product components does the Java software provide?
Which class has traditionally been the backbone of the JDBC architecture?
Which was the first most widely used programming interface for accessing relational databases and it offers the ability to connect all the databases on all the platforms.?
JDBC is a Java API that is used to connect and execute query to the database
In the following JDBC drivers which is known as fully java driver?
Which JDBC drivers will run your program?
What is the reason that a java program cannot directly communicate with an ODBC driver?
A leading database connectivity vendor, worked together to produce the ____.
Which driver converts JDBC calls directly into the vendor-specific database protocol?
Which models do the JDBC API support for the database access?
Which of the following JDBC drivers is known as a partially java driver?
The JDBC API is what allows access to a data source from a Java middle tier
Which driver uses ODBC driver to connect to the database?
How many JDBC product components does the Java software provides?
How many types of JDBC drivers are available?
Which method is used for an SQL statement that is executed frequently?
Chapter: Servlet and Overview
How is the dynamic interception of requests and responses to transform the information done?
Which type of ServletEngine is a server that includes built-in support for servlets?
What type of servlets use these methods doGet(), doPost(),doHead, doDelete(), doTrace()?
Which cookie it is valid for single session only and it is removed each time when the user closes the browser?
Sessions is a part of the SessionTracking and it is for maintaining the client state at server side.
When destroy() method of a filter is called?
Web server is used for loading the init() method of servlet.
Servlets handle multiple simultaneous requests by using threads.
Which method is used to send the same request and response objects to another servlet in RequestDispacher ?
The sendRedirect() method of HttpServletResponse interface can be used to redirect response to another resource, it may be servlet, jsp or html file
Which packages represent interfaces and classes for servlet API?
Which class can handle any type of request so that it is protocol-independent?
Which HTTP Request method is non-idempotent?
Which object is created by the web container at time of deploying the project?
What is the lifecycle of a servlet?
Which method in session tracking is used in a bit of information that is sent by a web server to a browser and which can later be read back from that browser?
Which are the examples of Application Server?
How many techniques are used in Session Tracking?
In HTTP Request method Get request is secured because data is exposed in URL bar
In the following statements identify the disadvantages of CGI?
Servlet technology is used to create web application
Which method is used to specify before any lines that uses the PintWriter?
What are functions of Servlet container?
Which object of HttpSession can be used to view and manipulate information about a session?
Which methods are used to bind the objects on HttpSession instance and get the objects?
Which of the following are interface?
1. ServletContext
2. Servlet
3. GenericServlet
4. HttpServlet
The life cycle of a servlet is managed by
Which of the following code is used to get an attribute in a HTTP Session object in servlets?
What is the difference between servlets and applets? i. Servlets execute on Server; Applets execute on browser ii. Servlets have no GUI; Applet has GUI iii. Servlets creates static web pages; Applets creates dynamic web pages iv. Servlets can handle only a single request; Applet can handle multiple requests
Which are the session tracking techniques? i. URL rewriting ii. Using session object iii.Using response object iv. Using hidden fields v. Using cookies vi. Using servlet object
A deployment descriptor describes
The values of and in web.xml file
Chapter: JSP
Which one is the correct order of phases in JSP life cycle?
Which technology do we mix our business logic with the presentation logic?
Which attribute specifies a JSP page that should process any exceptions thrown but not caught in the current page?
The ASP and JSP technologies are quite similar in the way they support the creation of Dynamic pages, using HTML templates, scripting code and components for business logic.
Which of the following is an advantage of the statement – Separation of business logic from JSP ?
JSPs eventually are compiled into Java servlets, you can do as much with JSPs as you can do with Java servlets.
JavaServer Pages often serve the same purpose as programs implemented using the Common Gateway Interface (CGI)
Which is the Microsoft solution for providing dynamic Web content?
Which tag is used to execute java source code in JSP?
A JSP page consists of which tags?
Which packages does a JSP API consist of?
Which of the scripting of JSP not putting content into service method of the converted servlet?
The difference between Servlets and JSP is the …………….
Which of the following are the valid scopes in JSP?
JSP includes a mechanism for defining …………………………. or custom tags.
Why DB connections are not written directly in JSPs?
Which is not a directive?
Which http method send by browser that asks the server to get the page only?
Which tag should be used to pass information from JSP to included JSP?
_jspService() method of HttpJspPage class should not be overridden.
Which is not a directive?
- Question and answers in Advanced JAVA,
- Advanced JAVA multiple choice questions and answers,
- Advanced JAVA Important MCQs,
- Solved MCQs for Advanced JAVA,
- Advanced JAVA MCQs with answers PDF download
Your recent visits
McqMate.com is an educational platform, Which is developed BY STUDENTS, FOR STUDENTS, The main objective of our platform is to assist fellow students in preparing for exams and in their Studies throughout their Academic career.
MCQMATE IS ALSO AVAILABLE ON