[thelist] Pradheep :: [Java]

john at johnallsopp.co.uk john at johnallsopp.co.uk
Wed Aug 20 01:36:49 CDT 2003


>> i need to know the internal and external difference between
>> String str = "prad";
>> String str = new String("prad");

I don't think there is one.

String is the only object, however, where this 'shorthand' is provided.
Every other type of object must be instantiated like the second line.

J




More information about the thelist mailing list