0

throw and throws....

can we throw exception without using throws??

9th Jul 2016, 10:05 AM
Ashhar Mohd
Ashhar Mohd - avatar
4 Réponses
+ 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) }
10th Jul 2016, 6:00 PM
Parker McMullin
Parker McMullin - avatar
0
no
9th Jul 2016, 11:35 AM
Varun Wadhwa
Varun Wadhwa - avatar
0
Very short answer XD
9th Jul 2016, 12:11 PM
Very hard!
Very hard! - avatar
0
Wrong questions
24th Jul 2016, 8:00 AM
Akash Kumar
Akash Kumar - avatar