Java MCQ Questions for Placement


Q.  Which case of a session bean obtains the UserTransaction object via the EJBContext using the getUserTransaction() method in EJB transaction management?

a. Bean-managed transactions
b. Container-managed transactions
c. Container-managed transactions
d. None of the above


ANSWER: See Answer
 
No explanation is available for this question!
MCQs:  The PipedInputStream and PipedOutputStream classes can be used to read and write data simultaneously.
Category: Placement Tests,   Published by: teswesm
MCQs:  Which method returns the interrupted flag after that it sets the flag to false if it is true?
Category: Placement Tests,   Published by: teswesm
MCQs:  Unchecked exceptions are checked at compile-time rather they are checked at runtime.
Category: Placement Tests,   Published by: teswesm
MCQs:  Struts supports which of these model components?
Category: Placement Tests,   Published by: teswesm
MCQs:  Abbreviate the term POJO?
Category: Placement Tests,   Published by: teswesm
MCQs:  Which of the following is not used to seek a file pointer?
Category: Computer Science MCQs,   Published by: teswesm
MCQs:  During dynamic memory allocation in CPP, new operator returns _________ value if memory allocation is unsuccessful.
Category: Computer Science MCQs,   Published by: teswesm
MCQs:  We can create objects of the abstract class.
Category: Computer Science MCQs,   Published by: teswesm
MCQs:  Which of the followings is/are pointer-to-member declarator?
Category: Computer Science MCQs,   Published by: teswesm
MCQs:  Default value of static variable is_____ .
Category: Computer Science MCQs,   Published by: teswesm
MCQs:  ________ are used to format the data display in CPP.
Category: Computer Science MCQs,   Published by: teswesm
MCQs:  Reusability of the code can be achieved in CPP through ______ .
Category: Computer Science MCQs,   Published by: teswesm
MCQs:  By default, members of the class are ____________ in nature.
Category: Computer Science MCQs,   Published by: teswesm
MCQs:  Which of the following is CPP style type-casting?
Category: Computer Science MCQs,   Published by: teswesm
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