What is true about Class.getInstance()?

a) Class.getInstance calls the constructor
b) Class.getInstance is same as new operator
c) Class.getInstance needs to have matching constructor
d) Class.getInstance creates object if class does not have any constructor

1 thought on “What is true about Class.getInstance()?”

Leave a Comment