Java MCQ Questions for Placement

Q.  Which class members can be accessed from the classes in the same package as well as classes in other Packages that are subclasses of the declaring class?

a. private
b. Public
c. Protected
d. None of the above


ANSWER: See Answer
 
No explanation is available for this question!
MCQs:  Which is a mechanism where one object acquires all the properties and behaviors of the parent object?
Category: Placement Tests,   Published by: T-Code Scripts
MCQs:  Java Virtual Machine is platform independent.
Category: Placement Tests,   Published by: T-Code Scripts
MCQs:  What is the range of the int data type?
Category: Placement Tests,   Published by: T-Code Scripts
MCQs:  Which are subclasses of FilterInputStream and FilterOutputStream?
Category: Placement Tests,   Published by: T-Code Scripts
MCQs:  Which method returns a reference to the currently executing thread object?
Category: Placement Tests,   Published by: T-Code Scripts
MCQs:  If you import a package, subpackages will not be imported.
Category: Placement Tests,   Published by: T-Code Scripts
MCQs:  Which keyword is used to make the classes and interface of another package accessible to the current package?
Category: Placement Tests,   Published by: T-Code Scripts
MCQs:  Which access specifiers can be used for a class so that it’s members can be accessed by a different class in the different package?
Category: Placement Tests,   Published by: T-Code Scripts
MCQs:  The Object class is not a parent class of all the classes in java by default.
Category: Placement Tests,   Published by: T-Code Scripts
MCQs:  Which is a superclass of all exception classes?
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:  Which method is used to send the same request and response objects to another servlet in RequestDispacher ?
Category: Placement Tests,   Published by: T-Code Scripts
MCQs:  Servlets handle multiple simultaneous requests by using threads.
Category: Placement Tests,   Published by: T-Code Scripts
MCQs:  Web server is used for loading the init() method of servlet.
Category: Placement Tests,   Published by: T-Code Scripts
MCQs:  What is used to display the intermediate result in an interceptor?
Category: Placement Tests,   Published by: T-Code Scripts
MCQs:  The workflow interceptor is used to get information about the error messages defined in the action class.
Category: Placement Tests,   Published by: T-Code Scripts
MCQs:  EJB is like COM, Abbreviate the term COM?
Category: Placement Tests,   Published by: T-Code Scripts
MCQs:  EJB is a specification for J2EE server, not a product; Java beans may be a graphical component in IDE.
Category: Placement Tests,   Published by: T-Code Scripts
MCQs:  Which package is used for Remote Method Invocation (RMI)?
Category: Placement Tests,   Published by: T-Code Scripts
MCQs:  RMI is a server-side component; It is not required to be deployed on the server.
Category: Placement Tests,   Published by: T-Code Scripts