Discussion Forum

  1. Home
  2. »
  3. Languages
  4. »
  5. What is true about Class.getInstance()?
What is true about Class.getInstance()?

Class.getInstance calls the constructor

Class.getInstance is same as new operator

Class.getInstance needs to have matching constructor

Class.getInstance creates object if class does not have any constructor

Answer: D . Class.getInstance creates object if class does not have any constructor
0Shares
0 0

If you think the posted answer is wrong or Confused About the Answer? Ask for Details Here

Know Explanation? Add it Here
we’ll review your comment and contact you soon….

Leave a Reply

Your email address will not be published. Required fields are marked *

error: You are not allowed to do so.....
0Shares
0
Scroll to Top