S
stef
Hello,
IMHO the assignment of a literal to a string class (String s =
"Hello" is... amazing for an strongly oriented object language like
Java. I mean, In opposition to C++ (for example) Java doesn't
implement that kind of constructor (operator =)
On the other side, it seems that String s = <literal> is treated like
a primitive assignment, but... it stills a class
This "trick" has been implemented to get better performance (see
Intern() method) ?
thanks...
IMHO the assignment of a literal to a string class (String s =
"Hello" is... amazing for an strongly oriented object language like
Java. I mean, In opposition to C++ (for example) Java doesn't
implement that kind of constructor (operator =)
On the other side, it seems that String s = <literal> is treated like
a primitive assignment, but... it stills a class
This "trick" has been implemented to get better performance (see
Intern() method) ?
thanks...