are Class-objects guaranteed to be unique in the JVM, are they Singletons? i.e. will
getClass() == getClass()
always hold true and is
a == b
true if and only if
a.equals(b)
where a and b are of type Class<?>
?
You can have one singleton and/or class per class loader.
a.equals(b)
is required to be true if a == b
(except if a is null
)
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With