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<?>?
Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.
Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.
Lost your password? Please enter your email address. You will receive a link and will create a new password via email.
Please briefly explain why you feel this question should be reported.
Please briefly explain why you feel this answer should be reported.
Please briefly explain why you feel this user should be reported.
You can have one singleton and/or class per class loader.
a.equals(b)is required to be true ifa == b(except if a isnull)