try thisbaz catch exception e

Info iconThis preview shows page 1. Sign up to view the full content.

View Full Document Right Arrow Icon
This is the end of the preview. Sign up to access the rest of the document.

Unformatted text preview: aved workspace frames off the stack, looking for the most recently pushed one that contains a try/catch block whose catch clause declares a supertype of the excepAon being thrown. If no matching catch is found, abort the program with an error. CIS120 / Spring 2012 _;! System.out.println(
 “here in foo”);! this! _;! System.out.println(
 “here in bar”);! this! Exception! Abstract Stack Machine Workspace Stack _;! Heap C! this! Discard the current workspace. Then, pop saved workspace frames off the stack, looking for the most recently pushed one that contains a try/catch block whose catch clause declares a supertype of the excepAon being thrown. If no matching catch is found, abort the program with an error. CIS120 / Spring 2012 _;! System.out.println(
 “here in foo”);! this! _;! System.out.println(
 “here in bar”);! this! Exception! Abstract Stack Machine Workspace Stack _;! Heap C! this! Discard the current workspace. Then, pop saved workspace frames off the stack, looking for the most recently pushed one that contains a try/catch block whose catch clause declares a supertype of the excepAon being thrown. If no matching catch is found, abort the program with an error. CIS120 / Spring 2012 _;! System.out.println(
 “here in foo”);! Exception! this! _;! System.out.println(
 “here in bar”);! Try/Catch for ( )? No! Abstract Stack Machine Workspace Stack _;! Heap C! this! Discard the current workspace. Then, pop saved workspace frames off the stack, looking for the most recently pushed one that contains a try/catch block whose catch clause declares a supertype of the excepAon being thrown. If no matching catch is found, abort the program with an error. CIS120 / Spring 2012 _;! System.out.println(
 “here in foo”);! Exception! Try/Catch for ( )? No! Abstract Stack Machine Workspace Stack Heap _;! C! Try/Catch for ( )? No! Discard the current workspace. Then, pop saved workspace frames off the stack, looking for the most recently pushed one that contains...
View Full Document

This document was uploaded on 11/24/2013.

Ask a homework question - tutors are online