Java MCQ Questions for Placement


Q.  Find the correct syntax of the declaration which defines the XML Version?

a. < ?xml version= "1.0" ? >
b. < xml version="1.0"/ >
c. < ?xml version="1.0" / >
d. None of the above


ANSWER: See Answer
 
No explanation is available for this question!
MCQs:  Which allows the caller to remove elements from the underlying collection during the iteration with well-defined semantics?
Category: Placement Tests,   Published by: teswesm
MCQs:  Consider the following two statements (A) int x = 25; (B) Integer y = new Integer(33); What is the difference between these two statements?
Category: Placement Tests,   Published by: teswesm
MCQs:  Which is a language for finding information in an XML document?
Category: Placement Tests,   Published by: teswesm
MCQs:  Which are the main features of XML?
Category: Placement Tests,   Published by: teswesm
MCQs:  Which language is Extensible Markup Language (XML) similar?
Category: Placement Tests,   Published by: teswesm
MCQs:  Which class is thread-safe i.e. multiple threads cannot access it simultaneously,So it is safe and will result in an order?
Category: Placement Tests,   Published by: teswesm
MCQs:  Which is a mechanism where one object acquires all the properties and behaviors of the parent object?
Category: Placement Tests,   Published by: teswesm
MCQs:  Java Virtual Machine is platform independent.
Category: Placement Tests,   Published by: teswesm
MCQs:  What is the range of the int data type?
Category: Placement Tests,   Published by: teswesm
MCQs:  Which are subclasses of FilterInputStream and FilterOutputStream?
Category: Placement Tests,   Published by: teswesm
MCQs:  Which method returns a reference to the currently executing thread object?
Category: Placement Tests,   Published by: teswesm
MCQs:  If you import a package, subpackages will not be imported.
Category: Placement Tests,   Published by: teswesm
MCQs:  Which keyword is used to make the classes and interface of another package accessible to the current package?
Category: Placement Tests,   Published by: teswesm
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: teswesm
MCQs:  The Object class is not a parent class of all the classes in java by default.
Category: Placement Tests,   Published by: teswesm
MCQs:  Which is a superclass of all exception classes?
Category: Placement Tests,   Published by: teswesm
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: teswesm
MCQs:  Which method is used to send the same request and response objects to another servlet in RequestDispacher ?
Category: Placement Tests,   Published by: teswesm
MCQs:  Servlets handle multiple simultaneous requests by using threads.
Category: Placement Tests,   Published by: teswesm
MCQs:  Web server is used for loading the init() method of servlet.
Category: Placement Tests,   Published by: teswesm