I heard this statement many times when reading some java books/articles.My question is very straightforward that when we say that creating some object will be very expensive?
Here expensive is for what and at what scenario we should use this term.It would be very easy for me to understand if some one illustrate with small example and how to avoid this?