Java MCQ Questions for Placement

Q.  Which method causes the current thread to wait for the specified milliseconds, until the another thread notifies? (invokes notify() or notifyAll() method)?

a. public final void wait(long timeout)throws InterruptedException
b. protected void finalize()throws Throwable
c. public final void wait(long timeout,int nanos)throws InterruptedException
d. protected Object clone() throws CloneNotSupportedException


ANSWER: See Answer
 
No explanation is available for this question!
MCQs:  Which stream does Java application uses to read data from a source, it may be a file, an array, peripheral device or socket?
Category: Placement Tests,   Published by: T-Code Scripts
MCQs:  Which method is used in thread class to starts the execution of the thread?
Category: Placement Tests,   Published by: T-Code Scripts
MCQs:  Which packages are also termed as Java API Packages?
Category: Placement Tests,   Published by: T-Code Scripts
MCQs:  Which symbol is used to contain the values of automatically initialized arrays. Also used to define a block of code, for classes, methods, and local scopes?
Category: Placement Tests,   Published by: T-Code Scripts
MCQs:  PatternSyntaxException Class Methods is an unchecked exception that indicates a syntax error in a regular expression pattern.
Category: Placement Tests,   Published by: T-Code Scripts
MCQs:  What is the advantage of Method Overloading?
Category: Placement Tests,   Published by: T-Code Scripts
MCQs:  Garbage Collection is the process of reclaiming the runtime unused memory automatically.
Category: Placement Tests,   Published by: T-Code Scripts
MCQs:  How many steps are used to connect any java application using JDBC?
Category: Placement Tests,   Published by: T-Code Scripts
MCQs:  What is the lifecycle of a servlet?
Category: Placement Tests,   Published by: T-Code Scripts
MCQs:  In the elements of Hibernate architecture is a factory of session and client of ConnectionProvider, It holds the second level cache (optional) of data is _____.
Category: Placement Tests,   Published by: T-Code Scripts
MCQs:  The values configured in struts.properties file will override the default values configured in default.properties which is contained in the struts2-core-x.y.z.jar distribution.
Category: Placement Tests,   Published by: T-Code Scripts
MCQs:  In EJB, middleware services are provided by EJB Container automatically.
Category: Placement Tests,   Published by: T-Code Scripts
MCQs:  1099 is the default port used by RMI Registry.
Category: Placement Tests,   Published by: T-Code Scripts
MCQs:  Which tag is used to execute java source code in JSP?
Category: Placement Tests,   Published by: T-Code Scripts
MCQs:  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.?
Category: Placement Tests,   Published by: T-Code Scripts
MCQs:  Java Plug-in software is not responsible to manage the lifecycle of an Applet.
Category: Placement Tests,   Published by: T-Code Scripts
MCQs:  The ActionListener interface is not used for handling action events.
Category: Placement Tests,   Published by: T-Code Scripts
MCQs:  What package is a part of the wrapper class which is imported by default into all Java programs?
Category: Placement Tests,   Published by: T-Code Scripts
MCQs:  Which methods are commonly used in ServerSocket class?
Category: Placement Tests,   Published by: T-Code Scripts
MCQs:  Which constructor of DatagramSocket class is used to creates a datagram socket and binds it with the given Port Number?
Category: Placement Tests,   Published by: T-Code Scripts