File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
http://aspose.com/file-tools
The moose likes Java in General and the fly likes Number of Objects Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of EJB 3 in Action this week in the EJB and other Java EE Technologies forum!
JavaRanch » Java Forums » Java » Java in General
Bookmark "Number of Objects " Watch "Number of Objects " New topic
Author

Number of Objects

Vaibhav G Garg
Ranch Hand

Joined: Sep 23, 2011
Posts: 130
Hi,

I have to figure out how many objects are created in JVM at particular point of time during program execution. Can you please suggest how can I achieve this in eclipse?

Thanks.
Winston Gutkowski
Bartender

Joined: Mar 17, 2011
Posts: 7024
    
  16

Vaibhav G Garg wrote:I have to figure out how many objects are created in JVM at particular point of time during program execution. Can you please suggest how can I achieve this in eclipse?

I suspect there are several profilers around that can do it for you; although I have to admit, I've never tried.

Any particular reason for needing this? It seems like an odd request.

Winston

Isn't it funny how there's always time and money enough to do it WRONG?
Artlicles by Winston can be found here
Vaibhav G Garg
Ranch Hand

Joined: Sep 23, 2011
Posts: 130
I am preparing for SCJP exam and there was a similar question in the mock exam. So, just wanted to check the correctness of the question I thought of running it in eclipse.
Winston Gutkowski
Bartender

Joined: Mar 17, 2011
Posts: 7024
    
  16

Vaibhav G Garg wrote:I am preparing for SCJP exam and there was a similar question in the mock exam. So, just wanted to check the correctness of the question I thought of running it in eclipse.

Well, If you're using the Sierra/Bates study book, I'm pretty sure they give all the answers in the back (it certainly did when I did the exam). Are you saying you want something to check that their answers are correct?

Winston
Vaibhav G Garg
Ranch Hand

Joined: Sep 23, 2011
Posts: 130
Hi Winston,

I was giving some online tests and wanted to cross-check the questions for that.

Thanks & Regards,
Vaibhav Garg
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: Number of Objects
 
Similar Threads
Corejava Question ??
Multi-thread sockets :/
Reference count
a question about polymorphism ??
convert String into Object