In class a few days ago, my professor said that Java compilers assign different objects to the same object if they are constant. For instance,
If I have two Strings a and b that store "zeeb", at compile-time, rather than keeping two different string objects, a and b will point to the same object. Do all compilers (particularly Eclipse) do this, and is there a way to avoid this?
performance optimzation
Page 1 of 1|
|

New Topic/Question
Reply



MultiQuote


|