Out of curiosity...what happens when we call a method that returns some value but we don\'t handle/use it? And we also expect that sometimes this returned value could be rea
The returned value is thrown away if not used, but it is created. It is perfectly reasonable not to use it ( although you should be ceratin that this is the right thing to be doing ), but if it takes a lot of resource to create, then this is wasted.
You may want to consider whether another method would be a better options, that doesn't create the return object at all.