Languages-Java [3i Infotech Placement]: Sample Questions 84 - 86 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 84

Edit

Write in Short

Short Answer▾

Short int________

Explanation

  • bit.
  • The size of short int (signed or unsigned) is bytes or bits.
  • Signed and Unsigned differs only in the range of the value.
  • Signed short int ranges from to .
  • Unsigned short ranges from .
  • The maximum signed bit integer is

Question 85

Edit

Describe in Detail

Essay▾

External variables can be accessed.

Explanation

  • External variables can accesses functions.
  • A variable defined outside any function block.
  • A local variable is a variable defines inside a function block.
  • Alternative to automatic variables, it is possible to define variables that are external to all functions, that is, variables that can be accessed by name by any function.
  • Globally accessible, they can be used instead of argument lists to communicate data between functions.
  • Remain in existence permanently, rather than appearing and disappearing as functions are called and exited.
  • They retain their values even after the functions that set them have returned.

Question 86

Edit

Appeared in Year: 2004

Write in Short

Short Answer▾

What is the Life Cycle of Session bean?

Explanation

  • Stateful and stateless session beans have different life cycles- states when they are instantiated, ready to be used, and destroyed vary from one type to another.
  • We will examine the life cycle of each stateless and stateful session bean in the following sections.

Stateless Session Bean:

Stateless Session Bean
  • Do not exist: Bean instance simply does not exist.
  • Ready state: When Web Logic Server is first started, several bean instances are created and placed in the Ready pool.
  • More instances might be created by the container as needed by the EJB container.
Stateful Session Bean
  • Does not exist: Bean instance does not exist.
  • Ready state: Bean instance in the ready state is tied to particular client and engaged in a conversation.
  • Passive state: A bean instance in the passive state is passivated to conserve resources.

Developed by: