This is a discussion on Object Count.. within the Java forums, part of the Programming Talk category; Can anybody help me to count how many objects are created during runtime in a java class as... As in... ...
|
|||||||
| Register | FAQ | Members List | Calendar | Search | Today's Posts | Mark Forums Read |
|
|||
|
Can anybody help me to count how many objects are created during runtime in a java class as...
As in... String s1="abc"; s1.concat(s1); s1.replace('a','z'); How many String objects will be created(With explanation please...) Any help on this will be highly appreciated. Thanks |
|
|||
|
Hi.
Am not sure of your question. If you want to know the no of objects created by your class. You can have a counter variable in your constructor that can be just incremented . This will help to find out the no of objects actually created by the class. |
![]() |
| Thread Tools | |
|
|
|
||||
| Thread | Thread Starter | Forum | Replies | Last Post |
| QTP Material | kalyansantosh | Software Testing | 5 | 05-08-2008 01:52 AM |
| Urgent - WinRunner user guide material | priyapp | Testing Tutorials | 3 | 02-16-2007 03:37 AM |
| qtp&winreunner materail | mattana_79 | Testing Tutorials | 1 | 02-14-2007 05:51 AM |
| Comp.software-eng FAQ (Part 0): periodic postings and archives | David Alex Lamb | Tech FAQ | 2 | 05-23-2004 06:15 AM |
| comp.lang.eiffel Frequently Asked Questions (FAQ) | Franck Arnaud | Tech FAQ | 0 | 04-17-2004 08:27 AM |