Select topics and difficulty and just practice mcqs.
User (name or email)
pick difficulty level
number of questions
Let's practice 30 mcqs on
mcqs by everyone
Which of these classes are used by character streams for input and output operations?
Which of the following code can be used to send an error response to the client using the specified status code and clearing the buffer
None of above
Which of the following manages a list of database drivers in JDBC? A - DriverManager B - JDBC driver C - Connection D - Statement
What does DTD stand for
C. Do The Dance
A. Direct Type Definition
B. Document Type Definition
D. Dynamic Type Definition
2. Which of these exception is thrown in cases when the file specified for writing it not found?
Which of the following method of TestSuite class returns a test which will fail and log a warning message
static Test getWarning(String message)
static Test showWarning(String message)
static Test warning(String message)
static Test displayWarning(String message)
When destroy() method of servlet gets called
The destroy() method is called only once at the end of the life cycle of a servlet.
None of the above
Both of the above.
The destroy() method is called after the servlet has executed service method.
Which of these object stores an association between keys and values
Which of these method of class String is used to check weather a given object starts with a particular string literal?
What are the predefined attributes
Which of these process occur automatically by java run time system?
b) Garbage collection
c) File Filtering
d) All of the mentioned
Which of these packages contain all the collection classes?
Which of these is an oncorrect statement?
a) String objects are immutable, they cannot bechanged.
b) String object can point to some other reference of Stringvariable.
c) StringBuffer class is used to store string in a buffer for lateruse.
d) None of the mentioned
The default value of a static integer variable of a class in Java is,
Which of these is an interface for control over serialization and deserialization?
Kind of Parsers are
C. non-validating and validating
D. none of the above
Which statement is true
All XML documents must have a DTD
A. All the statements are true
B. All XML elements must have a closing tag
All XML elements must be lower case
Which of these methods is used to compare a specific region inside a string with another specific region in another string?
Which of the following code is used to get PrintWriter object in servlet
None of above
If the DTD is included in your XML source file, it should be wrapped in a DOCTYPE definition with the following syntax:
Which data type value is returned by all transcendental math functions
Which of these interface is implemented by Thread class
Which of the following method of TestCase class sets the name of a TestCase
getConnection(_______ , ______ , ______) What are the two parameters that are included ?
a) URL or machine name where server runs, Password, User ID
b) URL or machine name where server runs, User ID, Password
c) User ID, Password, URL or machine name where server runs
d) Password, URL or machine name where server runs, User ID
Which of these access specifiers can be used for an interface
All of the mentioned
Which of these is the wrapper for simple data type char
A JSP is transformed into a(n):
a) Java applet
b) Java servlet
c) Either 1 or 2 above
d) Neither 1 nor 2 above
Which of these is an incorrect Statement?
A. It is necessary to use new operator to initialize anarray.
B. Array can be initialized using comma separated expressions surrounded by curlybraces.
C. Array can be initialized when they aredeclared.
D. None of the mentioned
Which of these standard collection classes implements a dynamic array
Which of the following is correct about JDBC 4.0? A - DataSet Implementation of SQL usingannotations.
B - SQL XMLsupport.
C - Both of theabove.
D - None of the above