It is currently Fri May 18, 2012 5:56 pm


Post a new topicPost a reply Page 1 of 1   [ 1 post ]
Author Message
 Post subject: Stringbuffer and Software Developers.
PostPosted: Mon Aug 30, 2010 7:06 pm 
Site Admin

Joined: Sat Aug 02, 2008 8:00 am
Posts: 147
For your information, software developer would be the person who in charge of the production for a software, means that he or she will be involve in every phases which related to software development process rather than just design and coding. His or her contribution would be more to the application level instead of programming tasks. The difference between the programmer and developer is the programmer is involving in the writing source code for the software while on the other hand, developers is involved in wider aspects of software developments process, for instance, testing, design, implementation, maintenance and so on.
When and why the software developers or programmers use the string buffer? And what is the string buffer? String buffer created to replace the string where the string is immutable object and the string buffer is mutable object. Immutable object means fixed and unchangeable. When the string is manipulated, a new string has to be created for the changes. A string buffer which is mutable, the array of characters is not always need to be filled like string which required the exact length. Hence, it can be changed, modified, removed, or added its state without creating a new string buffer to replace. However, it is only applied when there is available length to do modification or changes. Otherwise, a new array of characters needs to be created for doing changes. It indicates that string buffer is efficient than string where it does not require a new creation when facing large values. It requires less resource and improves the performance.
It would be the best for using string buffer when you are dealing with dynamic information where the text is often modified. Comparing to the string, it will speed up the performance and using less resources. As mentioned above, it does require creating new object to replace the string buffer but just adding, removing, modifying or changing the characters in the arrays. Only there is an exception when there is no enough length for doing so.
For developers, they will consider that string buffer is efficient either in time, cost and performance. Therefore, it is recommended to use the string buffer for writing source code as it is safer for them when there is case for modification or changes. Lastly, it does not mean that string is not good but is dependable for the situation where we have to use different tools for different situation.

_________________

Muhammad Safwat Fuad
The Java Code Admin
Java Technical Lead.
Mobile: +2010-2942-538
Email:mtv134@yahoo.com


Top
 Profile Send private message  
 
Display posts from previous:  Sort by  
Post a new topicPost a reply Page 1 of 1   [ 1 post ]


Who is online

Registered users: BigBobFrox


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot post attachments in this forum

Jump to:  
cron


Powered by phpBB © 2000, 2002, 2005, 2007 phpBB Group
twilightBB Style by Daniel St. Jules of Gamexe.net

[
SEO MOD © 2007 StarTrekGuide ]