the jvm keeps special variablecalled the program counterto maintain the address of the statement the jvm is currently executing in the program when method "coolinvokes another method "fool"the current value of the program counter is recorded in the frame of the current invocation of cool (so the jvm will know where to return to when method fool is doneat the top of the java stack is the frame of the running methodthat isthe method that currently has control of the execution the remaining elements of the stack are frames of the suspended methodsthat ismethods that have invoked another method and are currently waiting for it to return control to them upon its termination the order of the elements in the stack corresponds to the chain of invocations of the currently active methods when new method is invokeda frame for this method is pushed onto the stack when it terminatesits frame is