Java MCQ Questions for Placement

Q.  Which constructor creates an empty string buffer with the specified capacity as length.

a. StringBuffer()
b. StringBuffer(String str)
c. StringBuffer(int capacity)
d. None of the above


ANSWER: See Answer
 
No explanation is available for this question!
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
MCQs:  Where are the following four methods commonly used? 1) public void add(Component c) 2) public void setSize(int width,int height) 3) public void setLayout(LayoutManager m) 4) public void setVisible(boolean)
Category: Placement Tests,   Published by: T-Code Scripts
MCQs:  Which method when implemented must return true while there are still more elements to extract, and false when all the elements have been enumerated?
Category: Placement Tests,   Published by: T-Code Scripts
MCQs:  From the following statements which is a disadvantage of an java array?
Category: Placement Tests,   Published by: T-Code Scripts