nerdexam
Oracle

1Z0-895 · Question #30

Given singleton bean FooEJB: How many distinct FooEJB bean instances will be used to process the code on the lines 101- 105?

The correct answer is B. 1. Java has several design patterns Singleton Pattern being the most commonly used. Java Singleton pattern belongs to the family of design patterns, that govern the instantiation process. This design pattern proposes that at any time there can only be one instance of a singleton…

Server Installation and Configuration

Question

Given singleton bean FooEJB: How many distinct FooEJB bean instances will be used to process the code on the lines 101- 105?

Exhibit

1Z0-895 question #30 exhibit

Options

  • A0
  • B1
  • C2

How the community answered

(37 responses)
  • A
    8% (3)
  • B
    78% (29)
  • C
    14% (5)

Explanation

Java has several design patterns Singleton Pattern being the most commonly used. Java Singleton pattern belongs to the family of design patterns, that govern the instantiation process. This design pattern proposes that at any time there can only be one instance of a singleton (object) created by the JVM.

Topics

#singleton bean#bean instances#EJB lifecycle#container managed

Community Discussion

No community discussion yet for this question.

Full 1Z0-895 Practice