How many distinct FooEJB bean instances will be used to process the code on the lines 101-105?
A.
0
B.
1
C.
2
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.