class throwseg1 { void show() throws Exception { throw new Exception(\"my.own.Exception\"); } void show2() throws Exception // Why throws i
Exception is a checked exception class. Therefore, any code that calls a method that declares that it throws Exception must handle or declare it.
Exception
throws Exception