79530193

Date: 2025-03-24 05:38:44
Score: 1
Natty:
Report link

You can use Reflection api to get an instance of Singleton class, by bypassing the private constructor with getConstructor().newInstance(). So yes you can create multiple instance of a singleton class but it will violate the concept of Singleton class.

Reasons:
  • Whitelisted phrase (-1.5): You can use
  • Low length (0.5):
  • No code block (0.5):
  • Single line (0.5):
  • Low reputation (1):
Posted by: Paras Bartwal