how to tell which are check exceptions and which are run time exceptions only from the class name whithout memorized to many things??
this is from Dan Chisholm's Mock Exam
----------------------------------------
1. class A {
2. void m1() {throw new ClassNotFoundException();}
3. void m2() {throw new ArithmeticException();}
4. void m3() {throw new ClassCastException();}
5. void m4() {throw new IllegalArgumentException();}
6. void m5() {throw new CloneNotSupportedException();}
7. void m6() {throw new NoSuchFieldException();}
8. }
What is the result of attempting to compile the program?
a.
Compiler error at line 2.
b.
Compiler error at line 3.
c.
Compiler error at line 4.
d.
Compiler error at line 5.
e.
Compiler error at line 6.
f.
Compiler error at line 7.
g.
None of the Above
---------------------------------------------
I just wondered if I take the
scjp,should I remember all the subclasses of RumTimeException And Exception??I think it's really a hard work.