In Java, methods reside in ______________
Answers
Answered by
6
Answer:
The code for methods is stored in the Permanent Generation (<= Java 7) and Metaspace (Java 8+). The thread stack is used to store arguments passed to methods and their local variables. Classes are cleaned up when the Classloader which loaded them is unloaded.
Answered by
3
Answer:
The code for methods is stored in the Permanent Generation (<= Java 7) and Metaspace (Java 8+). The thread stack is used to store arguments passed to methods and their local variables.
Similar questions