/* * @topic T11381 Exception demo VII * @brief class ExDemoSpecific extends ExDemo */ package week7exceptions; import java.io.IOException; public class ExDemo { public void saveFile() throws IOException { //a block of code that can throw an exception boolean x = true; boolean y = true; if ( x == y ) { throw new IOException( "TEST" ); } }///saveFile }//class ExDemo