Question 1
Consider the code given below. How many activation records are created while executing this code?
class ClassOne{ public void methodOne(){ // ... } public void methodTwo(){ // ... methodOne(); // ... } public void methodThree(){ // ... methodTwo(); // ... }}class ClassTwo{ public static void main(String[] args){ // ... ClassOne c = new ClassOne(); c.methodThree(); }}4
3
5
2