Let\'s say a method returns some value, but when I call it, I don\'t assign any variable to accept this RV. Then where does it go? Will GC collect it? Would it be a problem
Will GC collect it?
Yes. Since there would be no live reference to the Object returned it would be eligible for GC.
Would it be a problem if I use this kind of method tons of times in my code?
It should not. All the returned Objects will be GCed.