chrisdtrinityphysicians
asked on
StringBuilder Capacity
The languages C#.Net and java both have StringBuilder class. In both languages, we can get StringBuilder's capacity. But in C#, we are getting the capacity value as 16, 32, 64, 128, ..., ect. But in Java, we are getting the capacity value as 16, 34, 70, 142, ..., etc.
So in java, 2 bits are extra occupying when comparing with .net, that is why? Can any one please explain me?
So in java, 2 bits are extra occupying when comparing with .net, that is why? Can any one please explain me?
SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
ASKER CERTIFIED SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
ASKER