How many objects are allowed to create for a given instance class ?
It depends on class code .
If a class is created without any restrictions , then it is possible to create any number of objects . In few cases we can restrict the number of objects to a certain limit. See below given sample code.
public class A
//Now clients of this class are not allowed to create objects because of the presence of private constructors .
Back To Top