package br.com.ocjp.exception;

import java.io.IOException;

public class ExceptionCatchDeclare {
	
	public void doSomething()/* throws IOException*/ {
		throw new IOException(); // does not compile you have to declare(throws)
	}
	
	public void doAnything() {
		doSomething(); // here you have to handle(try/catch) or declare(throws)
	}
}