Is raise statement same as final in java? | Sololearn: Learn to code for FREE!
New course! Every coder should learn Generative AI!
Try a free lesson
+ 1

Is raise statement same as final in java?

17th Mar 2018, 10:58 AM
Sombeer Yadav
Sombeer Yadav - avatar
2 Answers
0
No it is not same...
17th Mar 2018, 11:42 AM
Mohd Zaki
Mohd Zaki - avatar
0
No see raise is when you want yo raise an exception intentionally in ur code. final is used to put some part of code as ur 'must carry out code' which will be run though exception occurs or not
1st Apr 2018, 9:17 AM
Aishwarya Dhuri
Aishwarya Dhuri - avatar