Which of the following pairs fill in the blanks to make this code compile?
Choose all that apply
7: public void r() _____ Exception { 8: ____ Exception(); 9: }
B, D.
In a method declaration, the keyword throws is used.
To actually throw an exception, the keyword throw is used and a new exception is created.