Java MCQ Questions for Placement

Q.  How many methods does a thread class provides for sleeping a thread?

a. 3
b. 1
c. 4
d. 2


ANSWER: See Answer
 
No explanation is available for this question!
MCQs:  Which class is thread-safe i.e. multiple threads cannot access it simultaneously,So it is safe and will result in an order?
Category: Placement Tests,   Published by: T-Code Scripts
MCQs:  Which is a mechanism where one object acquires all the properties and behaviors of the parent object?
Category: Placement Tests,   Published by: T-Code Scripts
MCQs:  Java Virtual Machine is platform independent.
Category: Placement Tests,   Published by: T-Code Scripts
MCQs:  What is the range of the int data type?
Category: Placement Tests,   Published by: T-Code Scripts
MCQs:  Which are subclasses of FilterInputStream and FilterOutputStream?
Category: Placement Tests,   Published by: T-Code Scripts
MCQs:  Which method returns a reference to the currently executing thread object?
Category: Placement Tests,   Published by: T-Code Scripts
MCQs:  If you import a package, subpackages will not be imported.
Category: Placement Tests,   Published by: T-Code Scripts
MCQs:  Which keyword is used to make the classes and interface of another package accessible to the current package?
Category: Placement Tests,   Published by: T-Code Scripts
MCQs:  Which access specifiers can be used for a class so that it’s members can be accessed by a different class in the different package?
Category: Placement Tests,   Published by: T-Code Scripts
MCQs:  The Object class is not a parent class of all the classes in java by default.
Category: Placement Tests,   Published by: T-Code Scripts
MCQs:  Which is a superclass of all exception classes?
Category: Placement Tests,   Published by: T-Code Scripts
MCQs:  The performance of the application will be faster if you use PreparedStatement interface because query is compiled only once.
Category: Placement Tests,   Published by: T-Code Scripts
MCQs:  Which method is used to send the same request and response objects to another servlet in RequestDispacher ?
Category: Placement Tests,   Published by: T-Code Scripts
MCQs:  Servlets handle multiple simultaneous requests by using threads.
Category: Placement Tests,   Published by: T-Code Scripts
MCQs:  Web server is used for loading the init() method of servlet.
Category: Placement Tests,   Published by: T-Code Scripts
MCQs:  What is used to display the intermediate result in an interceptor?
Category: Placement Tests,   Published by: T-Code Scripts
MCQs:  The workflow interceptor is used to get information about the error messages defined in the action class.
Category: Placement Tests,   Published by: T-Code Scripts
MCQs:  EJB is like COM, Abbreviate the term COM?
Category: Placement Tests,   Published by: T-Code Scripts
MCQs:  EJB is a specification for J2EE server, not a product; Java beans may be a graphical component in IDE.
Category: Placement Tests,   Published by: T-Code Scripts
MCQs:  Which package is used for Remote Method Invocation (RMI)?
Category: Placement Tests,   Published by: T-Code Scripts