Languages-Java [3i Infotech Placement]: Sample Questions 64 - 65 of 141

Glide to success with Doorsteptutor material for competitive exams : get questions, notes, tests, video lectures and more- for all subjects of your exam.

Question 64


Describe in Detail


Why does java not support multiple inheritance?


Java Supports Multiple Inheritance Using Interfaces
  • Common lisp and few other languages support multiple inheritance while java does not support.
  • Java does not allow multiple inheritances to avoid the ambiguity caused by it.
  • One of the examples of problem is the diamond problem that occurs in multiple inheritances.
  • Moreover, concrete classes have the option to implement multiple interface using single class.
  • Multiple interface inheritance allows an object to inherit many different method signatures with the caveat that the inheriting object must implement inherited methods.

Question 65

Appeared in Year: 2004



Which of the following is true?


Choice (4)


Stateless session beans doesn՚t preserve any state across method calls


Stateful session beans can be accesses by multiple users at the same time


All of the above


None of the above




  • A session bean encapsulates business logic that can be invoked programmatically by a client over local, remote, or web service client views.
  • To access an application that is deployed on the server, the client invokes the session bean՚s methods.
  • The session bean performs work for its client providing encapsulation.
  • A stateless session bean is not persistent.
    • Stateless bean objects are pooled by the EJB container to service the request on demand.
    • In case of concurrent access, EJB container routes each request to a different instance.
    • A stateful session bean is a type of enterprise bean, which preserves the conversational state with client.
  • A stateful session bean as per its name keeps associated client state in its instance variables.
  • EJB Container creates a separate stateful session bean to process client՚s each request.

3 important annotations are used in stateless session bean:

3 Important Annotations

Developed by: