PermGen and Heap, Difference and their significance

后端 未结 5 462
闹比i
闹比i 2021-02-01 23:19

Friends,

Can you please give me significance, difference and uses for Heap and PermGen. Also it would be good to know what class are loaded in them respectively.

5条回答
  •  心在旅途
    2021-02-01 23:53

    I believe Permgen is memory area inside Heap memory only. It is created for special purpose like holding String.

    All the object created does not get Permgen Memory It is only for special clasess like String in JDK 6 or below.

    In modern JDK versions like 8 and above, Pergen is not found however new memory like Non Heap and other various cache memories are introduced.

提交回复
热议问题