Java MCQ Questions for Placement


Q.  Which method compares the given object to 'this' object?

a. public boolean equals(Object obj)
b. public final void notifyAll()
c. public final void notify()
d. public final ClassgetClass()


ANSWER: See Answer
 
No explanation is available for this question!
MCQs:  Which class cannot be instantiated?
Category: Placement Tests,   Published by: teswesm
MCQs:  What is used to convert the byte-oriented stream into character-oriented stream?
Category: Placement Tests,   Published by: teswesm
MCQs:  Which method is used in thread class to test if the current thread has been interrupted?
Category: Placement Tests,   Published by: teswesm
MCQs:  Which type of java package that contains wide range of classes and methods are used for performing different functionalities?
Category: Placement Tests,   Published by: teswesm
MCQs:  Which concept is used to make Java more memory efficient (because no new objects are created if it exists already in string constant pool)?
Category: Placement Tests,   Published by: teswesm
MCQs:  Find whether these two rules are correct or not defined by the constructor 1. Constructor name must be same as its class name. 2. Constructor must have no explicit return type.
Category: Placement Tests,   Published by: teswesm
MCQs:  Which are also known as inner classes?
Category: Placement Tests,   Published by: teswesm
MCQs:  Which driver converts JDBC calls directly into the vendor-specific database protocol?
Category: Placement Tests,   Published by: teswesm
MCQs:  Which one of the following scopes does the attribute in servlet is an object that can be set, get or removed?
Category: Placement Tests,   Published by: teswesm
MCQs:  Which method is easy for a java programmer to add a criteria?
Category: Placement Tests,   Published by: teswesm
MCQs:  POJO means you are not forced to implement any interface or extend any class.
Category: Placement Tests,   Published by: teswesm
MCQs:  How many types of session beans are available in EJB?
Category: Placement Tests,   Published by: teswesm
MCQs:  Which method of the Naming class (found in java.rmi) is used to update the RMI registry on the server machine?
Category: Placement Tests,   Published by: teswesm
MCQs:  In JSP page directive which attribute defines the MIME(Multipurpose Internet Mail Extension) type of the HTTP response?
Category: Placement Tests,   Published by: teswesm
MCQs:  A leading database connectivity vendor, worked together to produce the ____.
Category: Placement Tests,   Published by: teswesm
MCQs:  Which method is first Called for any applet when it starts its execution?
Category: Placement Tests,   Published by: teswesm
MCQs:  When an applet begins, in which sequence will the AWT call the methods?
Category: Placement Tests,   Published by: teswesm
MCQs:  The Following steps are required to perform (1) Implement the Listener interface and overrides its methods (2) Register the component with the Listener
Category: Placement Tests,   Published by: teswesm
MCQs:  Void is not a wrapper class
Category: Placement Tests,   Published by: teswesm
MCQs:  Give the abbrevation of BSD.
Category: Placement Tests,   Published by: teswesm