Java MCQ Questions for Placement

Q.  Which method is used in thread class to test if the current thread has been interrupted?

a. public static boolean interrupted()
b. public boolean isInterrupted()
c. public void interrupt()
d. public boolean isAlive()


ANSWER: See Answer
 
No explanation is available for this question!
MCQs:  Which type of polymorphism is nothing but the method overloading in java?
Category: Placement Tests,   Published by: T-Code Scripts
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: T-Code Scripts
MCQs:  Which class can be used to read data line by line using the readLine() method?
Category: Placement Tests,   Published by: T-Code Scripts
MCQs:  Package does not provide access protection
Category: Placement Tests,   Published by: T-Code Scripts
MCQs:  Generally string is a sequence of characters, But in java, string is an _______.
Category: Placement Tests,   Published by: T-Code Scripts
MCQs:  Which block contains a block of program statements where an exception might occur?
Category: Placement Tests,   Published by: T-Code Scripts
MCQs:  Static fields belong to the class, not instances of the class
Category: Placement Tests,   Published by: T-Code Scripts
MCQs:  Which enables some interaction with the garbage collector?
Category: Placement Tests,   Published by: T-Code Scripts
MCQs:  What is the reason that a java program cannot directly communicate with an ODBC driver?
Category: Placement Tests,   Published by: T-Code Scripts
MCQs:  In HTTP Request what asks for the loopback of the request message, for testing or for troubleshooting?
Category: Placement Tests,   Published by: T-Code Scripts
MCQs:  Abbreviate the term HQL?
Category: Placement Tests,   Published by: T-Code Scripts
MCQs:  In which configuration file is there a link between the View and Model components in the Web Client but you would not have to touch these settings for 99.99% of your projects?
Category: Placement Tests,   Published by: T-Code Scripts
MCQs:  Which server-side component is required to be deployed on the server?
Category: Placement Tests,   Published by: T-Code Scripts
MCQs:  RMI uses which protocol on top of TCP/IP (an analogy is HTTP over TCP/IP)?
Category: Placement Tests,   Published by: T-Code Scripts
MCQs:  In JSP how many ways are there to perform exception handling?
Category: Placement Tests,   Published by: T-Code Scripts
MCQs:  Which JDBC drivers will run your program?
Category: Placement Tests,   Published by: T-Code Scripts
MCQs:  All Applets must import java.applet and java.awt.
Category: Placement Tests,   Published by: T-Code Scripts
MCQs:  Swing is not a part of JFC (Java Foundation Classes) that is used to create GUI application
Category: Placement Tests,   Published by: T-Code Scripts
MCQs:  What method Returns an enumeration of the keys which includes those keys found in the default property list?
Category: Placement Tests,   Published by: T-Code Scripts
MCQs:  Which package provides core functionality?
Category: Placement Tests,   Published by: T-Code Scripts