System Stack and Method Calls

Let's discuss the system stack and learn how the method calls work in the stack.

System stack and method calls

Method calls are implemented using a stack called the system stack. When a method is called, the current execution is stopped and the control goes to the called method. After the called method exits/returns, the execution resumes from the point at which the execution was stopped.

Level up your interview prep. Join Educative to access 80+ hands-on prep courses.