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 the following are valid servlet filters
D - All of the above.
A - Authentication Filters.
B - Data compression Filters
C - Encryption Filters.
2. Which of these exception is thrown in cases when the file specified for writing it not found?
Which of the following is true about init() method of filter? A - The init() method simply creates or loads some data that will be used throughout the life of thefilter.
B - The init() method is not called again and again for each userrequest.
C - Both of theabove.
D - None of the above
Which of the following concepts means determining at runtime what method to invoke?
A. Data hiding
B. Dynamic Typing
C. Dynamic binding
D. Dynamic loading
Hot java is
Which of the following is correct about Connection interface of JDBC? A - Connection interface consists of methods for contacting adatabase.
B - It represents communicationcontext.
C - Both of theabove.
D - none of the above
When destroy() method of servlet gets called
The destroy() method is called only once at the end of the life cycle of a servlet.
Both of the above.
None of the above
The destroy() method is called after the servlet has executed service method.
Which of the following invokes functions in sql
All of These
It defines the document structure with a list of_______.
legal elements elements bad elements None of these
DTD is: Data Type Definition Document Type Definition Definition Type Document Definition Type Data
Which of the following class is a Composite of Tests
Which of the following method of TestSuite class returns a test which will fail and log a warning message
static Test warning(String message)
static Test showWarning(String message)
static Test getWarning(String message)
static Test displayWarning(String message)
Which of the following code is used to get country/region code in servlets
None of above
Which of the following method to Assert class checks if two object references point to the same object
void assertChecks(Object expected, Object actual)
void assertCheck(Object expected, Object actual)
void assert(Object expected, Object actual)
void assertSame(Object expected, Object actual)
Which of these classes provide an implementation of map interface
Which cannot directly cause a thread to stop executing?
A. Calling the SetPriority() method on a Threadobject.
B. Calling the wait() method on anobject.
C. Calling notify() method on anobject.
D. Calling read() method on an InputStream object
If the DTD is external to your XML source file, it should be wrapped in a DOCTYPE definition with the following syntax:
Which of these object stores an association between keys and values
____ allows java code to run in the JVM to call and be called by native applications
Which of the following concept of oops allows compiler to insert arguments in a function call if it is not specified?
A. Call by value
B. Call by reference
C. Default arguments
D. Call by pointer
Which of the following code is used to delete an attribute from a HTTP Session object in servlets
None of the above.
Which defines a method called nextElement that is used to get the next element in a data structure that contains multiple elements
Which of these methods can be used to obtain a set of all keys in a map
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 the following code is used to get a particular attribute in servlet
None of above
What does DTD stand for
B. Document Type Definition
D. Dynamic Type Definition
A. Direct Type Definition
C. Do The Dance
Which of these is a method of ObjectOutput interface used to finalize the output state so that any buffers are cleared?
1. Which of these class contains the methods used to write in a file?
Which of these is the wrapper for simple data type char
Which one of the following is not shared by threads
we serve best when javscript is enabled