1. Question: Which of the following statements regarding abstract classes are true?

    A
    All methods declared in an abstract class must be abstract.

    B
    Any subclass (abstract or concrete class) of an abstract class must implement all the methods declared in the parent abstract class.

    C
    Any concrete class must implement all the methods of the parent abstract class which are not implemented in the super hierarchy tree.

    D
    The abstract class may have method implementation.

    Note: Not available
    1. Report
  2. Question: Which of the following is the name of the cookie used by Servlet Containers to maintain session information?

    A
    SESSIONID

    B
    SERVLETID

    C
    JSESSIONID

    D
    CONTAINERID

    Note: Not available
    1. Report
  3. Question: Which method is called by the servlet container just after the servlet is removed from service?

    A
    public void finalize() {// code...}

    B
    public void destroy() {// code...}

    C
    public void destroy()throws ServletException {// code...}

    D
    public void finalize()throws ServletException {// code...}

    Note: Not available
    1. Report
  4. Question: Which method in the HttpServlet class corresponds to the HTTPPUT method?

    A
    put

    B
    doPut

    C
    httpPut

    D
    putHttp

    Note: Not available
    1. Report
  5. Question: Which of the following illustrates correct synchronization syntax?

    A
    public synchronized void Process(void){}

    B
    public void Process(){ synchronized(this){ } }

    C
    public void synchronized Process(){}

    D
    public synchronized void Process(){}

    Note: Not available
    1. Report
  6. Question: The transaction attribute of a bean is set to 'TX_REQUIRES_NEW.' What can be inferred about its behavior?

    A
    It initiates a new transaction only when the previous one is concluded.

    B
    It initiates a new transaction without waiting for the previous one to conclude.

    C
    It sends the request to the EJB container for initiating a new bean.

    D
    The bean manages its own transaction.

    Note: Not available
    1. Report
  7. Question: How many objects are created in the given code?
    Object x, y, z;
    x = new Object();
    y = new Object();

    A
    0

    B
    1

    C
    2

    D
    3

    Note: Not available
    1. Report
  8. Question: How does the set collection deal with duplicate elements?

    A
    Duplicate values will cause an error at compile time.

    B
    A set may contain elements that return duplicate values from a call to the equals method.

    C
    An exception is thrown if you attempt to add an element with a duplicate value.

    D
    The add method returns false if you attempt to add an element with a duplicate value.

    Note: Not available
    1. Report
  9. Question: What is the output of the given program?
    public class Test106 {
            public static void main(String[] args) {
                    Integer x = 0;
                    Integer y = 0;
                    Integer a = 1000;
                    Integer b = 1000;
                    System.out.println( (a==b) + "; " + (x==y) );
            }
    }

    A
    The code will not compile, because Integer is a class, and an object must be created by calling its constructor: Integer a = new Integer(1); or, alternatively, a primitive type must be used: int a = 1;

    B
    true; true

    C
    false; false

    D
    alse; true

    Note: Not available
    1. Report
  10. Question: 1 <libraryPrefix:handlerName parameterNAme="value"> 2 <%=23*counter %> 3 <b>Congratulations!</b> Which of the following is the correct way to complete the code snippet above?

    A
    </libraryPrefix:handlerName>

    B
    </libraryPrefix:handlerName paremeterName="value">

    C
    </handlerName>

    D
    <libraryPrefix>

    Note: Not available
    1. Report
Copyright © 2025. Powered by Intellect Software Ltd