Link to home
Start Free TrialLog in
Avatar of chrisdtrinityphysicians
chrisdtrinityphysiciansFlag for India

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?
SOLUTION
Avatar of AndyAinscow
AndyAinscow
Flag of Switzerland image

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
ASKER CERTIFIED SOLUTION
Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
Avatar of chrisdtrinityphysicians

ASKER

Thanks for the nice and immediate response.