New answers tagged

-2

Your method will work but because you are using a getter to return an instance of a class you are actually returning a new definition of an instance of a class each time. So later on, if you want to use instanceof Foo.OtherFoo, you will find it returns false every time.


Top 50 recent answers are included