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
Options
- A0
- B1
- C2
How the community answered
(37 responses)- A8% (3)
- B78% (29)
- C14% (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.
