Java MCQ Questions for Placement


Q.  Which applet java.awt.component class provides the life cycle method?

a. public void paint(Graphics g)
b. public void destroy()
c. public void stop()
d. public void init()


ANSWER: See Answer
 
No explanation is available for this question!
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
MCQs:  The DatagramSocket and DatagramPacket classes are not used for connection-less socket programming.
Category: Placement Tests,   Published by: teswesm
MCQs:  What is XML used to simplify?
Category: Placement Tests,   Published by: teswesm
MCQs:  Which Characters are illegal in XML elements?
Category: Placement Tests,   Published by: teswesm
MCQs:  Which type of polymorphism is nothing but the method overloading in java?
Category: Placement Tests,   Published by: teswesm
MCQs:  Which is nothing but a blueprint or a template for creating different objects which defines its properties and behaviours?
Category: Placement Tests,   Published by: teswesm
MCQs:  Which class can be used to read data line by line using the readLine() method?
Category: Placement Tests,   Published by: teswesm
MCQs:  Package does not provide access protection
Category: Placement Tests,   Published by: teswesm
MCQs:  Generally string is a sequence of characters, But in java, string is an _______.
Category: Placement Tests,   Published by: teswesm
MCQs:  Which block contains a block of program statements where an exception might occur?
Category: Placement Tests,   Published by: teswesm
MCQs:  Static fields belong to the class, not instances of the class
Category: Placement Tests,   Published by: teswesm
MCQs:  Which enables some interaction with the garbage collector?
Category: Placement Tests,   Published by: teswesm
MCQs:  What is the reason that a java program cannot directly communicate with an ODBC driver?
Category: Placement Tests,   Published by: teswesm