Win a copy of Design for the Mind this week in the Design forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

Number of Objects

 
Vaibhav G Garg
Ranch Hand
Posts: 143
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
Pie
Posts: 10218
58
Eclipse IDE Hibernate Ubuntu
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
 
Vaibhav G Garg
Ranch Hand
Posts: 143
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
Pie
Posts: 10218
58
Eclipse IDE Hibernate Ubuntu
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
Posts: 143
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi Winston,

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

Thanks & Regards,
Vaibhav Garg
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic