Skip to main content
Frame
- Frame is used to store local data, results.
- It is used to returned values for methods, and dispatch the excaptions.
- Whenever a method is called or invoked a new Frame is created.
- Whenever a method execution is over normal or execeptional then the frame is destroyed.
- Each frame has followings
- 1) Array of Local variables
- 2) Stack of Operand
- 3) A reference to the class of the current called method.
- At a time only one frame is having in the active state, for the called method, in the current thread stack.
- That frame is known as a current frame and the method is known as a current method.
- The class in which the current method is there is called the current class.
- A frame for one thread is local for that thread only, it cannot be referenced by other thread.