In Spring config file, I have created two bean for the same class i.e.
<bean id="emp1" class="Employee">
<property name="age" value="10"></property>
</bean>
<bean id="emp2" class="Employee">
<property name="age" value="15"></property>
</bean>
and scope for both is by default 'singleton' but when I print Employee object its showing two different objects. How is this possible? I mean If the bean scope is singleton then how it's creating two different objects ?