aspose file tools
The moose likes Programmer Certification (SCJP/OCPJP) and the fly likes How we can find that how much string objects has been created? Big Moose Saloon
  Search | Java FAQ | Recent Topics
Register / Login
JavaRanch » Java Forums » Certification » Programmer Certification (SCJP/OCPJP)
Reply locked New topic
Author

How we can find that how much string objects has been created?

Hemant Khandal
Greenhorn

Joined: May 29, 2011
Posts: 11
Can any body tell me how much object has been created implicitly or explicitly?
Here is any way (method or anything) to find out created object?

public class stringClass {

public static void main(String args[]){
String name="Hemant";
String sName=name+"Khandal";
String s=sName+"Java";
String ss=new String("Hemant");
}

}
Bear Bibeault
Author and ninkuma
Marshal

Joined: Jan 10, 2002
Posts: 56230
    
  13

Please do not post the same question more than once.


[Smart Questions] [JSP FAQ] [Books by Bear] [Bear's FrontMan] [About Bear]
 
I agree. Here's the link: http://zeroturnaround.com/jrebel - it saves me about five hours per week
 
subject: How we can find that how much string objects has been created?
 
Similar Threads
Threads
urgent!!!! Marcus Test 1 Threads
[immutable]...
How we can find that how much string objects has been created?
Markus Green's Question