Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations strongm on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

String: type or class?

Status
Not open for further replies.

ddddddd

MIS
Jun 20, 2002
2
US

Hi,

useing String class doesn't need 'new'?
We can do
String s = "12345";
much like that String is a Type????
 
String is a class with a few special cases that make it appear to be a primitive. I wish they would have done this with the real primitives and just made everything in Java an Object like Smalltalk.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top