Path: csiph.com!x330-a1.tempe.blueboxinc.net!feeder1.hal-mli.net!border3.nntp.dca.giganews.com!Xl.tags.giganews.com!border1.nntp.dca.giganews.com!nntp.giganews.com!local2.nntp.dca.giganews.com!nntp.posted.palinacquisition!news.posted.palinacquisition.POSTED!not-for-mail NNTP-Posting-Date: Tue, 14 Jun 2011 11:57:30 -0500 Date: Tue, 14 Jun 2011 09:57:29 -0700 From: Peter Duniho User-Agent: Mozilla/5.0 (Macintosh; U; Intel Mac OS X 10.5; en-US; rv:1.9.2.17) Gecko/20110414 Thunderbird/3.1.10 MIME-Version: 1.0 Newsgroups: comp.lang.java.programmer Subject: Re: Call by Result References: In-Reply-To: Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 7bit Message-ID: <_dmdnZ182bBnD2rQnZ2dnUVZ_sGdnZ2d@posted.palinacquisition> Lines: 14 X-Usenet-Provider: http://www.giganews.com NNTP-Posting-Host: 50.46.118.188 X-Trace: sv3-VTXvh8X/1/6PvfyVH2d/xCp5xIeTBma0g50EvkFTjWZCBk/nEB84LPhQe9JT4+8AlLsDSjogFml/pAU!5PC3k+YNZNp5Lc315BCQhuc/6BlXQrt/ndTIN6M08hOcW4WHb7xDqacrnNtAaDl4bg4q3XHPIIg5!+5bqgn9o6RIQnFNiy2caNumfStJATvoM5/G6BIjR7uA= X-Complaints-To: abuse@iinet.com X-DMCA-Complaints-To: abuse@iinet.com X-Abuse-and-DMCA-Info: Please be sure to forward a copy of ALL headers X-Abuse-and-DMCA-Info: Otherwise we will be unable to process your complaint properly X-Postfilter: 1.3.40 X-Original-Bytes: 2406 Xref: x330-a1.tempe.blueboxinc.net comp.lang.java.programmer:5310 On 6/14/11 9:38 AM, Stefan Ram wrote: > Peter Duniho writes: >> True. Instead, in Java (and .NET, Cocoa, etc.) instead we >> have mutable and immutable strings. > > In Java there are strings and string buffers/builders. See my reply to "markspace". Both java.lang.String and java.lang.StringBuilder are "strings". > A string buffer/build is not a string, just a char sequence. A StringBuilder most certainly is a string. Just because it's not type-assignable to/from String doesn't keep it from being a string.