what is difference between throw and throws in exception?
Answer Posted / ravivarman
Throw keyword can be used by a program to throw exceptions
explicitly.the execution of the current block stops
immediately after the throw statement.
A method should declare that it can cause an exception and
expects its caller handle or re-throw the exception.
| Is This Answer Correct ? | 0 Yes | 0 No |
Post New Answer View All Answers
What do you understand by soft reference?
What is meant by the value of a variable?
Which language is java?
Hi.... I applied for the post of scientific officer/Engineer-SB(Programmer).Please post the syllabus and sample papers.
What occurs when an object is constructed?
What are the high-level thread states in java programming?
what is the swingutilities.invokelater(runnable) method for? : Java thread
What is difference in between java class and bean?
Why should we use singleton pattern instead of static class?
How do you use spaces in java?
What are the legal parameters?
What is the difference between an argument and a parameter?
What is serialization in java?
Is java based on c?
Can we inherit a class with private constructor?