Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

How can we know that how many string object resides in string litral pools.? [duplicate]

Tags:

java

How can we know that how many string object resides in string litral pools.

is there any mechanism or java code available that will give me the number of String object that are curruntly in string pool ???

like image 398
Krunal Patel Avatar asked Jun 06 '14 05:06

Krunal Patel


1 Answers

is there any mechanism or java code available that will give me the number of String object that are curruntly in string pool ???

No, no such mechanism exists in the JDK.

like image 116
Sotirios Delimanolis Avatar answered Sep 29 '22 15:09

Sotirios Delimanolis