never should,as Object can be use as lock.

XenoAmess
________________________________
From: core-libs-dev <[email protected]> on behalf of Bernd 
Eckenfels <[email protected]>
Sent: Friday, December 24, 2021 5:51:55 AM
To: alan Snyder <[email protected]>; core-libs-dev 
<[email protected]>
Subject: Re: a quick question about String

new String() always creates a new instance.

Gruss
Bernd
--
http://bernd.eckenfels.net
________________________________
Von: core-libs-dev <[email protected]> im Auftrag von Alan 
Snyder <[email protected]>
Gesendet: Thursday, December 23, 2021 6:59:18 PM
An: core-libs-dev <[email protected]>
Betreff: a quick question about String

Do the public constructors of String actually do what their documentation says 
(allocate a new instance), or is there some kind of compiler magic that might 
avoid allocation?

Reply via email to