Does Java guarantee that Object.getClass() == Object.getClass()?

Viewed 6742

I really do mean identity-equality here.

For example, will the following always print true?

System.out.println("foo".getClass() == "fum".getClass());
4 Answers
Related