0 Replies - 952 Views - Last Post: 16 September 2005 - 06:30 AM Rate Topic: -----

#1 dragonlady  Icon User is offline

  • D.I.C Head

Reputation: 0
  • View blog
  • Posts: 57
  • Joined: 07-August 05

performance optimzation

Posted 16 September 2005 - 06:30 AM

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?
Is This A Good Question/Topic? 0
  • +

Page 1 of 1