How can I retrieve a String or other object type without creating a new object each time?
Creating and garbage collecting potentially large numbers of objects (millions) unnecessarily can really hurt performance. It may be better to provide a way to retrieve data like strings using the JDBC API without always allocating a new object. We are studying this issue to see if it is an area in which the JDBC API should be improved. Stay tuned, and please send us any comments you have on this question.
Related Questions
- Why don the printing methods in the Logger interface accept message of type Object, but only messages of type String?
- When experimenting with creating negative afterimages, what type of external object is best to be practiced with?
- How can I retrieve a String or other object type without creating a new object each time?