0

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.....

Vinay S Jain
  • 111
  • 1
  • 11
  • my question is about storage which is not duplicate.. – Vinay S Jain Mar 20 '15 at 04:16
  • 1
    answer 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

0 Answers0