what difference between throw and throws in exception
handling.
Answer Posted / sidd
In case of java if any error occur deuring the exicution
time throw is use to throwing that that into our catch block
for handling and in case of throws if any error
will occur throws can handle that error.
| Is This Answer Correct ? | 1 Yes | 0 No |
Post New Answer View All Answers
What are the benefits of operations in java?
Is string is a data type in java?
What is the use of default method in interface in java?
Can two objects have same hashcode?
What purpose do the keywords final, finally, and finalize fulfill?
How do you do absolute value in java?
How java enabled high performance?
Can a serialized object be transferred via network?
Is char a method in java?
How do you sort objects in java?
What is basic syntax?
Can we override private methods?
What is Major and importance difference between for and foreach loop ?
Which is the class in java?
What is ellipsis in java?