🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: borland.public.jbuilder.java.language
Article #7750

Different between String("") and String()

#7750
From: Rozita Hedayaty
Date: Tue, 22 May 2001 18:18
11 lines
1068 bytes
Hi,

Is there any different between these two statement? Do both create an empty
string?

String x = new String();
String y = new String("");

Thanks,

RH
Technical Details
Message-ID: <3b0aacf1_2@dnews>
Path: arc1-ca.pugleaf.net!archiver1.google.com!newsfeed.google.com!sn-xit-02!sn-xit-03!supernews.com!cyclone-sjo1.usenetserver.com!news-out-sjo.usenetserver.com!hub1.nntpserver.com!news-in.nibble.net!newsfeed01.sul.t-online.de!t-online.de!dnews

Show Full Headers
Complete Article Headers
X-Google-Language: ENGLISH,ASCII-7-bit
X-Google-Thread: f74b3,a9ac66d2eb8cf715,start
X-Google-Attributes: gidf74b3,public
X-Google-ArrivalTime: 2001-05-22 11:45:44 PST
From: "Rozita Hedayaty" <rhedayaty@DataManagementCorp.com>
Newsgroups: borland.public.jbuilder.java.language
Subject: Different between String("") and String()
Date: Tue, 22 May 2001 11:18:07 -0700
Lines: 14
X-Priority: 3
X-MSMail-Priority: Normal
X-Newsreader: Microsoft Outlook Express 5.00.2615.200
X-MimeOLE: Produced By Microsoft MimeOLE V5.00.2615.200
NNTP-Posting-Host: 64.173.96.183
Message-ID: <3b0aacf1_2@dnews>
X-Trace: dnews 990555377 64.173.96.183 (22 May 2001 11:16:17 -0700)
Path: arc1-ca.pugleaf.net!archiver1.google.com!newsfeed.google.com!sn-xit-02!sn-xit-03!supernews.com!cyclone-sjo1.usenetserver.com!news-out-sjo.usenetserver.com!hub1.nntpserver.com!news-in.nibble.net!newsfeed01.sul.t-online.de!t-online.de!dnews