If myMethod() is static, you can just say Your version of the code does extra work by creating an object. Since myMethod() is static, the object you created is unreachable and immediately eligible for garbage collection. However, your call to myMethod() will work fine.

If myMethod() is not static, your code creates an object of class myClass and calls myMethod on that object. When myMethod returns, the object will be eligible for garbage collection unless myMethod() saved a copy of this in a static member of myClass or outside of myClass.