Please join us at the new JavaWorld Q&A Forums. Your existing login will work there. The discussions here are now read-only.


JavaWorld Talkback >> 958783

Pages: 1

Unregistered




Many objects created?
      #47626 - 05/19/07 09:51 AM

I firmly agree with Holub's article about encapsulating implementation. But, using every field as object instead of primitive, such as, referring to Employee class example, Name, EmployeeId, Money and creating a new one either when importing or when exporting (with toString() or String.valueOf(value) methods), means creating a lot of objects, which in case of big iterations could require more memory and many garbage collections. This happens implementing this solution in my project.
Probably I didn't catch in the right way the solution, hence It would be interesting to understand how to deal with different primitive type, avoiding parsing or string conversion.


Post Extras: Print Post   Remind Me!   Notify Moderator  
Pages: 1



Extra information
0 registered and 1 anonymous users are browsing this forum.

Moderator:   

Print Topic

Forum Permissions
      You cannot start new topics
      You cannot reply to topics
      HTML is disabled
      UBBCode is enabled

Rating:
Topic views: 3549

Rate this topic

Jump to

Contact us JavaWorld

Powered by UBB.threads™ 6.5.5