Java MCQ Questions for Placement

Q.  Which method is used to change the name of a thread?

a. public String getName()
b. public void setName(String name)
c. public void getName()
d. public String setName(String name)


ANSWER: See Answer
 
No explanation is available for this question!
MCQs:  Which object of HttpSession can be used to view and manipulate information about a session?
Category: Placement Tests,   Published by: T-Code Scripts
MCQs:  Connection Pooling Class manages no of user requests for connections to improve the performance.
Category: Placement Tests,   Published by: T-Code Scripts
MCQs:  Which case of a session bean obtains the UserTransaction object via the EJBContext using the getUserTransaction() method in EJB transaction management?
Category: Placement Tests,   Published by: T-Code Scripts
MCQs:  Which services are provided to EJB components by the EJB container?
Category: Placement Tests,   Published by: T-Code Scripts
MCQs:  Which is an object, acts as a gateway for the client side, all the outgoing requests are routed through it and it resides at the client side and represents the remote object?
Category: Placement Tests,   Published by: T-Code Scripts
MCQs:  In RMI Architecture which layer Intercepts method calls made by the client/redirects these calls to a remote RMI service?
Category: Placement Tests,   Published by: T-Code Scripts
MCQs:  Which attribute specifies a JSP page that should process any exceptions thrown but not caught in the current page?
Category: Placement Tests,   Published by: T-Code Scripts
MCQs:  What technique is used for the authentication mechanism in the servlet specification?
Category: Placement Tests,   Published by: T-Code Scripts
MCQs:  Abbreviate the term UDA?
Category: Placement Tests,   Published by: T-Code Scripts
MCQs:  How many Result sets available with the JDBC 2.0 core API?
Category: Placement Tests,   Published by: T-Code Scripts
MCQs:  Which method is used for retrieving streams of both ASCII and Unicode characters is new in the JDBC 2.0 core API?
Category: Placement Tests,   Published by: T-Code Scripts
MCQs:  Which JDBC type represents a "single precision" floating point number that supports seven digits of mantissa?
Category: Placement Tests,   Published by: T-Code Scripts
MCQs:  The JDBC API has always supported persistent storage of objects defined in the Java programming language through the methods getObject and setObject.
Category: Placement Tests,   Published by: T-Code Scripts
MCQs:  In order to transfer data between a database and an application written in the Java programming language, the JDBC API provides which of these methods?
Category: Placement Tests,   Published by: T-Code Scripts
MCQs:  Which are the common security restrictions in applets?
Category: Placement Tests,   Published by: T-Code Scripts
MCQs:  An applet can play an audio file represented by the AudioClip interface in the java, applet package Causes the audio clip to replay continually in which method?
Category: Placement Tests,   Published by: T-Code Scripts
MCQs:  In Servlet Terminology what provides runtime environment for JavaEE (j2ee) applications. It performs many operations that are given below: 1. Life Cycle Management 2. Multithreaded support 3. Object Pooling 4. Security etc.
Category: Placement Tests,   Published by: T-Code Scripts
MCQs:  These two ways are used to create a Frame (1) By creating the object of Frame class (association) (2) By extending Frame class (inheritance)
Category: Placement Tests,   Published by: T-Code Scripts
MCQs:  Which is the container that doesn't contain title bar and MenuBars but it can have other components like button, textfield etc?
Category: Placement Tests,   Published by: T-Code Scripts
MCQs:  Implement the Listener interface and overrides its methods is required to perform in event handling.
Category: Placement Tests,   Published by: T-Code Scripts