0
throw and throws....
can we throw exception without using throws??
4 Answers
+ 1
Sort of.. Use a try/catch setup like this:
try {
//whatever code might throw exception
} catch (ExceptionType name) {
//code you want to execute if exception is thrown
//(most people create error messages)
}
0
no
0
Very short answer XD
0
Wrong questions