The Artima Developer Community
Sponsored Link

Legacy Java Answers Forum
April 2000

Advertisement

Advertisement

This page contains an archived post to the Java Answers Forum made prior to February 25, 2002. If you wish to participate in discussions, please visit the new Artima Forums.

Message:

the number of objects??

Posted by Jane on April 12, 2000 at 2:21 PM

Hi Bill,

Is there any way that we can find out how many objects have been
created in runtime?

In the following condition,
String s1 = "Hello world";
Stirng s2 = new String("Hello world");
How many objects have been created??
Since they have the same hashcode, does it mean that they are
the same object??

Thank you

Jane





Replies:
  • Profiling Shriram Shivakumar April 25, 2000 at 4:50 PM (0)
  • string mallepaddi sreedhar April 17, 2000 at 3:16 AM (0)

Sponsored Links



Google
  Web Artima.com   
Copyright © 1996-2009 Artima, Inc. All Rights Reserved. - Privacy Policy - Terms of Use - Advertise with Us