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
What is difference between java and java ee?
Which is bigger float or double?
What does indexof return in java?
What is a boolean flag in java?
Hi i am creating desktop application in that i want calling to mobile number. i have java telephone api (JTAPI) but i dont understand how it configure & use plese help me
What are packages in java?
What is multiple inheritance? Is it supported by java?
What is the difference between Java1.4 and Java1.5
What is dynamic binding(late binding)?
What is the main function in java?
Explain about exception propagation?
Why do we use regex?
What is use of inner class in java?
Can we create an object of private class?
Is null a keyword in java?