When we create string with new() Operator, it’s created in heap and not added into string pool while String created using literal are created in String pool itself which exists in PermGen area of heap. is it right ???????? Is my explanation correct.....
Asked
Active
Viewed 39 times
0
-
my question is about storage which is not duplicate.. – Vinay S Jain Mar 20 '15 at 04:16
-
1answer to your question is here http://stackoverflow.com/questions/4918399/what-type-of-memory-heap-or-stack-string-constant-pool-in-java-gets-stored – Naz Mar 20 '15 at 04:32