Java MCQ Questions for Placement


Q.  Which is used as an internal buffer and adds more efficiency than to write data directly into a stream. So, as to makes the performance fast?

a. BufferedOutputStream
b. ByteArrayOutputStream
c. BufferedInputStream
d. ByteArrayInputStream


ANSWER: See Answer
 
No explanation is available for this question!
MCQs:  What defines the method by which you can enumerate (obtain one at a time) the elements in a collection of objects?
Category: Placement Tests,   Published by: teswesm
MCQs:  Constructor is like a method that is used to initialize the state of an object. It is invoked at the time of object creation
Category: Placement Tests,   Published by: teswesm
MCQs:  In Method overriding a subclass in a different package can only override the non-final methods declared public or protected
Category: Placement Tests,   Published by: teswesm
MCQs:  The following two rules are defined by? 1. The parameters may differ in their type or number, or in both. 2. They may have the same or different return types.
Category: Placement Tests,   Published by: teswesm
MCQs:  Which allows you to migrate your implementations over time without breaking the code that depends on the public interface of your classes?
Category: Placement Tests,   Published by: teswesm
MCQs:  Which is used for writing data to a file in file handling?
Category: Placement Tests,   Published by: teswesm
MCQs:  In which state is the thread after invocation of start() method, but the thread Scheduler has not selected it to be the running thread?
Category: Placement Tests,   Published by: teswesm
MCQs:  Which package is used for analyzing code during run time?
Category: Placement Tests,   Published by: teswesm
MCQs:  The JDK forms an extended subset of a software development kit (SDK)
Category: Placement Tests,   Published by: teswesm
MCQs:  Which mechanism is provided to handle the runtime errors so that normal flow of the application can be maintained?
Category: Placement Tests,   Published by: teswesm
MCQs:  Constructor does not perform other tasks instead of initialization
Category: Placement Tests,   Published by: teswesm
MCQs:  In java, Method Overloading is possible by changing the return type of the method
Category: Placement Tests,   Published by: teswesm
MCQs:  Garbage collection only occurs sporadically during the execution of your program
Category: Placement Tests,   Published by: teswesm
MCQs:  Which driver uses ODBC driver to connect to the database?
Category: Placement Tests,   Published by: teswesm
MCQs:  In HTTP Request method Get request is secured because data is exposed in URL bar
Category: Placement Tests,   Published by: teswesm
MCQs:  How many techniques are used in Session Tracking?
Category: Placement Tests,   Published by: teswesm
MCQs:  Which of these simplifies an Object Relational Mapping tool?
Category: Placement Tests,   Published by: teswesm
MCQs:  The struts 2 framework is used to develop MVC-based web application
Category: Placement Tests,   Published by: teswesm
MCQs:  Which middleware services are provided by EJB?
Category: Placement Tests,   Published by: teswesm
MCQs:  In RMI which layer defines and supports the invocation semantics of the RMI connection and this layer maintains the session during the method call?
Category: Placement Tests,   Published by: teswesm