what is difference between throw and throws in exception?
Answer Posted / pavithra
throws is used to throw an exception from the method
without handling that exception where as 'throw' is used
to throw the exception to catch block and handle it.
Is This Answer Correct ? | 123 Yes | 79 No |
Post New Answer View All Answers
os is developed in c no java is more secured then c na why dont the os developed is developed using java
What is the formula to calculate percentage?
What is t in parametric equations?
What is the purpose of javac exe?
Explain about object oriented programming and its features?
What happens when you invoke a thread’s interrupt method while it is sleeping or waiting?
What is the constructor?
What is instance example?
What are data types in oop?
What is the difference between the size and capacity of a vector?
Explain about core java?
Is null function in java?
How do you stop a thread in java?
What is the difference between multitasking and multithreading in Java
Can finally block be used without a catch?