Java MCQ Questions for Placement


Q.  In Servlet Terminology what provides runtime environment for JavaEE (j2ee) applications. It performs many operations that are given below: 1. Life Cycle Management 2. Multithreaded support 3. Object Pooling 4. Security etc.

a. Server
b. Webserver
c. Container
d. Application Server


ANSWER: See Answer
 
No explanation is available for this question!
MCQs:  If a program uses Inline Function, then the function is expanded inline at ___________.
Category: Computer Science MCQs,   Published by: teswesm
MCQs:  In CPP, the size of the character array should be one larger than the number of characters in the string.
Category: Computer Science MCQs,   Published by: teswesm
MCQs:  Which of the following is/are valid ways to allocate memory for an integer by dynamic memory allocation in CPP?
Category: Computer Science MCQs,   Published by: teswesm
MCQs:  Which of the following is the perfect set of operators that can’t be overloaded in CPP ?
Category: Computer Science MCQs,   Published by: teswesm
MCQs:  Static variable in a class is initialized when _____ .
Category: Computer Science MCQs,   Published by: teswesm
MCQs:  To perform File I/O operations, we must use _____________ header file.
Category: Computer Science MCQs,   Published by: teswesm
MCQs:  An exception is thrown using _____________ keyword in CPP.
Category: Computer Science MCQs,   Published by: teswesm
MCQs:  Which of the followings is/are not a manipulator/s ? 1. flush 2. base 3. ends 4. oct 5. bin 6. skipws
Category: Computer Science MCQs,   Published by: teswesm
MCQs:  If default constructor is not defined, then how the objects of the class will be created?
Category: Computer Science MCQs,   Published by: teswesm
MCQs:  Is it mandatory to invoke/call a constructor for creating an object?
Category: Computer Science MCQs,   Published by: teswesm
MCQs:  Members of the class can be declared with auto, extern or register storage classes.
Category: Computer Science MCQs,   Published by: teswesm
MCQs:  C structure differs from CPP class in regards that by default all the members of the structure are __________ in nature.
Category: Computer Science MCQs,   Published by: teswesm
MCQs:  Which of the following best defines the syntax for template function ?
Category: Computer Science MCQs,   Published by: teswesm
MCQs:  Generic pointers can be declared with__________ .
Category: Computer Science MCQs,   Published by: teswesm
MCQs:  Which of the followings are true about constructors? 1. A class can have more than one constructor. 2. They can be inherited. 3. Their address can be referred. 4. Constructors cannot be declared in protected section of the class. 5. Constructors cannot return values.
Category: Computer Science MCQs,   Published by: teswesm
MCQs:  Which of the following are true about static member function? 1. They can access non-static data members. 2. They can call only other static member functions. 3. They can access global functions and data. 4. They can have this pointer. 5. They cannot be declared as const or volatile.
Category: Computer Science MCQs,   Published by: teswesm
MCQs:  Static variable must be declared in public section of the class.
Category: Computer Science MCQs,   Published by: teswesm
MCQs:  By default, if a function with minimum lines of code is declared and defined inside the class becomes Inline function.
Category: Computer Science MCQs,   Published by: teswesm
MCQs:  class X, class Y and class Z are derived from class BASE. This is ______ inheritance.
Category: Computer Science MCQs,   Published by: teswesm
MCQs:  When base class is derived in protected mode, then_____________ . 1. public members of base class become private members of derived class. 2. public members of base class become protected members of derived class. 3. public members of base class become public members of derived class. 4. protected members of base class become protected members of derived class. 5. protected members of base class become private members of derived class. 6. protected members of base class become public members of
Category: Computer Science MCQs,   Published by: teswesm