Suppose two classes ClassA and ClassB. Lets suppose ClassB is dependent on ClassA. On configuration file, if we define scope of ClassA to be singleton and that of ClassB to be Prototype then what happens to instance of ClassB each time we create a bean instance of ClassA? Will the same ClassB instance gets returned or new instance is created each time instance of ClassA is returned?

Thank you!!!