jQuery in Action, 3rd edition
The moose likes Beginning Java and the fly likes Need Help Initialization... Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Java » Beginning Java
Bookmark "Need Help Initialization..." Watch "Need Help Initialization..." New topic

Need Help Initialization...


Joined: Jan 13, 2001
Posts: 7
Hello Everybody
really confused aboout this
What is the differece between these two initializations
String s="Hello!";

String s=new String(Hello!);
are they the same???
Val Dra
Ranch Hand

Joined: Jan 26, 2001
Posts: 439

Val SCJP <BR>going for SCJD
Cindy Glass
"The Hood"

Joined: Sep 29, 2000
Posts: 8521
The Java Ranch has thousands of visitors every week, many with surprisingly similar names. To avoid confusion we have a naming convention, described at "JavaRanch Naming Policy" . We require names to have at least two words, separated by a space, and strongly recommend that you use your full real name. Please choose a new name which meets the requirements.

[This message has been edited by Cindy Glass (edited February 04, 2001).]

"JavaRanch, where the deer and the Certified play" - David O'Meara
I agree. Here's the link: http://aspose.com/file-tools
subject: Need Help Initialization...
It's not a secret anymore!