is there any concept of permanent memory ??? as far as i know there are two memory areas as explained in head first
java ..... Heap and Stack
but i read somewhere that when we execute any class it gets loaded in permanent memory , first all functions are loaded .
i am totally confused about it please can anyone explain me what all happens in memory ,for my simple program as written below???
class Emp
{
String name;
int salary;
void get(String s1,int s2)
{
name=s1;
salary=s2;
}
void show()
{
System.out.println(name);
System.out.println(salary);
}
public static void main(String [] arg){
Emp e=new Emp();
e.get("mine", 2000);
e.show();
}
}
will get() , show() and main() load in something called permanent memory ???