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<?>?
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)