View RSS Feed

Recent Blogs Posts

  1. Memory usage of StringBuilder and StringBuffer

    by , 04-26-2012 at 06:39 PM
    The implementation of these classes is essentially done in similar manner through the shared subclasses & usage of their memory is also same. Difference comes when the turn of those methods come that are present at StringBuffer get synchronized. Here they will be referred as the string buffers generically for sake of simplicity however; comment at the usage of memory will be applied to both classes.

    Objectís overhead is required by the string buffer, space for sake of int field ...