Java MCQ Questions for Placement


Q.  Which method returns a reference to the currently executing thread object?

a. currentThread()
b. runningThread()
c. runnableThread()
d. None of the above


ANSWER: See Answer
 
No explanation is available for this question!
MCQs:  An interface is a blueprint of a class. It has static constants and abstract methods.
Category: Placement Tests,   Published by: teswesm
MCQs:  Which variables are created when an object is created with the use of the keyword 'new' and destroyed when the object is destroyed?
Category: Placement Tests,   Published by: teswesm
MCQs:  Breaking a string or stream into meaningful independent words is known as tokenization.
Category: Placement Tests,   Published by: teswesm
MCQs:  What can be accessed or inherited without actual copy of code to each program?
Category: Placement Tests,   Published by: teswesm
MCQs:  Which provides accessibility to classes and interface?
Category: Placement Tests,   Published by: teswesm
MCQs:  If you are inserting any value in the wrong index as shown below, 1. int a[]=new int[5]; 2. a[10]=50; it would result in ______.
Category: Placement Tests,   Published by: teswesm
MCQs:  Packages are used for distributing a collection of reusable classes, usually in a format known as Java Archive (JAR) file.
Category: Placement Tests,   Published by: teswesm
MCQs:  Which is used to call the stored procedures and functions?
Category: Placement Tests,   Published by: teswesm
MCQs:  Which interfaces provide methods for batch processing in JDBC?
Category: Placement Tests,   Published by: teswesm
MCQs:  Sessions is a part of the SessionTracking and it is for maintaining the client state at server
Category: Placement Tests,   Published by: teswesm
MCQs:  Which cookie it is valid for single session only and it is removed each time when the user closes the browser?
Category: Placement Tests,   Published by: teswesm
MCQs:  Which configuration files are used in Struts?
Category: Placement Tests,   Published by: teswesm
MCQs:  Interceptor can change the flow of the application by returning the string.
Category: Placement Tests,   Published by: teswesm
MCQs:  Which component does the Entity bean represent the persistent data stored in the database?
Category: Placement Tests,   Published by: teswesm
MCQs:  A session bean represents a multiple clients inside the Application Server.
Category: Placement Tests,   Published by: teswesm
MCQs:  What are the exceptions which have to be handled in a RMI client program?
Category: Placement Tests,   Published by: teswesm
MCQs:  RMI uses a layered architecture; each of the layers could be enhanced or replaced without affecting the rest of the system.
Category: Placement Tests,   Published by: teswesm
MCQs:  Which of the following is an advantage of the statement – Separation of business logic from JSP ?
Category: Placement Tests,   Published by: teswesm
MCQs:  Which kind of driver converts JDBC calls into calls on the client API for Oracle, Sybase, Informix, IBM DB2, or other DBMS?
Category: Placement Tests,   Published by: teswesm
MCQs:  What invokes immediately after the start() method and also any time the applet needs to repaint itself in the browser?
Category: Placement Tests,   Published by: teswesm