0

What is the difference between throw and throws?

throw and throws are the keyword

11th Apr 2017, 10:06 AM
Bineeta Rawat
Bineeta Rawat - avatar
4 Antworten
11th Apr 2017, 10:11 AM
देवेंद्र महाजन (Devender)
देवेंद्र महाजन (Devender) - avatar
+ 1
you use throw when you want to throw an execption as statement, you use throws when you mark a method that may throw an execption for warning user to handle that exception witg try and catch
11th Apr 2017, 11:42 AM
η=sqrt(μ/ε)
η=sqrt(μ/ε) - avatar
0
Thx. The answers helped me too!
4th May 2017, 8:19 PM
Lisa Türk
Lisa Türk - avatar