i try
package ro.ex;
/**
* Created by roroco on 11/4/14.
*/
class Ex {
public void m() {
throw new Exception();
}
public void m2() {
throw new RuntimeException();
}
}
in throw new Exception();
, intellij idea raise "Unhandled exception: java.lang.Exception", but in throw new RuntimeException();
it's not, my question is: what cause this diff?