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
Which language is java?
What is __ init __ functions?
What is numel matlab?
What is the most important feature of java? What is an interface?
Explain about transient variables in java?
How infinite loop is declared?
Give the hierarchy of inputstream and outputstream classes.
What are the differences between checked exception and unchecked exception?
Is map sorted in java?
What is private static class in java?
What are the differences between the constructors and methods?
How do you compare values in java?
How can an exception be thrown manually by a programmer?
Are there structures in java?
Write a code to show a static variable?