Java MCQ Questions for Placement

Q.  Which is irrecoverable?

a. Error
b. Checked Exception
c. Unchecked Exception
d. Both B & C


ANSWER: See Answer
 
No explanation is available for this question!
MCQs:  An exception is an event, which occurs during the execution of a program that disrupts the normal flow of the program's instructions.
Category: Placement Tests,   Published by: T-Code Scripts
MCQs:  Switch is more efficient than nested if or if - else in java.
Category: Placement Tests,   Published by: T-Code Scripts
MCQs:  Which is used for reading streams of raw bytes such as image data and for reading streams of characters, consider using FileReader?
Category: Placement Tests,   Published by: T-Code Scripts
MCQs:  Which class is used to uncompress the file in the deflate compression format, It provides facility to the other uncompression filters?
Category: Placement Tests,   Published by: T-Code Scripts
MCQs:  Which method is used to change the name of a thread?
Category: Placement Tests,   Published by: T-Code Scripts
MCQs:  Which mechanism is used when a thread is paused running in its critical section and another thread is allowed to enter (or lock) in the same critical section to be executed?
Category: Placement Tests,   Published by: T-Code Scripts
MCQs:  How many reserved keywords are currently defined in the Java language?
Category: Placement Tests,   Published by: T-Code Scripts
MCQs:  Which constructor creates an empty string buffer with the specified capacity as length.
Category: Placement Tests,   Published by: T-Code Scripts
MCQs:  Which method Drops all changes made since the previous commit/rollback?
Category: Placement Tests,   Published by: T-Code Scripts
MCQs:  ResultSetMetaData interface is useful because it provides methods to get metadata from the ResultSet object.
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:  The sendRedirect() method of HttpServletResponse interface can be used to redirect response to another resource, it may be servlet, jsp or html file.
Category: Placement Tests,   Published by: T-Code Scripts
MCQs:  Which class provides stream to read binary data such as image etc. from the request object?
Category: Placement Tests,   Published by: T-Code Scripts
MCQs:  Using mail API we cannot send mail from a servlet.
Category: Placement Tests,   Published by: T-Code Scripts
MCQs:  Abbreviate the term OGNL?
Category: Placement Tests,   Published by: T-Code Scripts
MCQs:  Which type of validation we must implement the Validateable interface (or extend ActionSupport class) and provide the implementation of validate method?
Category: Placement Tests,   Published by: T-Code Scripts
MCQs:  Which validates the given string with the specified regular expression,it can be used in password, security key etc.?
Category: Placement Tests,   Published by: T-Code Scripts
MCQs:  Spring framework provides an difficult way to manage the dependency, It cannot be easily integrated with struts 2 framework.
Category: Placement Tests,   Published by: T-Code Scripts
MCQs:  Abbreviate the term JMS?
Category: Placement Tests,   Published by: T-Code Scripts
MCQs:  A message driven bean is like statefull session bean that encapsulates the business logic and doesn't maintain state.
Category: Placement Tests,   Published by: T-Code Scripts