Java MCQ Questions for Placement

Q.  What will happen if we call the run() method directly instead of calling the start() method?

a. Each thread starts in a separate call stack.
b. Invoking the run() method from main thread, the run() method goes onto the current call stack rather than at the beginning of a new call stack.
c. Both A & B
d. None of the above


ANSWER: See Answer
 
No explanation is available for this question!
MCQs:  By interface, we cannot support the functionality of multiple inheritances.
Category: Placement Tests,   Published by: T-Code Scripts
MCQs:  The Java Virtual Machine is the cornerstone of the Java platform.
Category: Placement Tests,   Published by: T-Code Scripts
MCQs:  Which method of DataInputStream class reads a line from the file and returns it as a string?
Category: Placement Tests,   Published by: T-Code Scripts
MCQs:  Which state is the thread still alive, but is currently not eligible to run?
Category: Placement Tests,   Published by: T-Code Scripts
MCQs:  Both threads are waiting for each other to release the lock, the condition is called deadlock.
Category: Placement Tests,   Published by: T-Code Scripts
MCQs:  How many ways are there to access package from another package?
Category: Placement Tests,   Published by: T-Code Scripts
MCQs:  Under which package is the string class encapsulated?
Category: Placement Tests,   Published by: T-Code Scripts
MCQs:  Which keyword is used for the block to handle the exceptions generated by try block?
Category: Placement Tests,   Published by: T-Code Scripts
MCQs:  Nested interface must be public if it is declared outside the interface but it cannot have any access modifier if declared within the class.
Category: Placement Tests,   Published by: T-Code Scripts
MCQs:  What is used to execute parameterized query?
Category: Placement Tests,   Published by: T-Code Scripts
MCQs:  Which class can handle any type of request so that it is protocol-independent?
Category: Placement Tests,   Published by: T-Code Scripts
MCQs:  Which ways are used by the Log4j and Logback frameworks in hibernate framework to support logging?
Category: Placement Tests,   Published by: T-Code Scripts
MCQs:  Which interface must be implemented by the Action class to store the information in the session scope?
Category: Placement Tests,   Published by: T-Code Scripts
MCQs:  The life cycle of session bean is not maintained by the application server (EJB Container).
Category: Placement Tests,   Published by: T-Code Scripts
MCQs:  Which objects are used by RMI for communicating with the remote object?
Category: Placement Tests,   Published by: T-Code Scripts
MCQs:  Which technology do we mix our business logic with the presentation logic?
Category: Placement Tests,   Published by: T-Code Scripts
MCQs:  Which method is used for an SQL statement that is executed frequently?
Category: Placement Tests,   Published by: T-Code Scripts
MCQs:  Which is a special type of program that is embedded in the webpage to generate the dynamic content?
Category: Placement Tests,   Published by: T-Code Scripts
MCQs:  Applet runs inside the browser and does not works at client side.
Category: Placement Tests,   Published by: T-Code Scripts
MCQs:  Which are passive controls that do not support any interaction with the user?
Category: Placement Tests,   Published by: T-Code Scripts