Page 1 of 1

What is true about Class.getInstance()?

Posted: Wed Jul 13, 2022 7:46 pm
by answerhappygod
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