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
Can extern variables be initialized?
I am a fresher and know core java, c languge, html, css etc if I am illegible for any job then send it on my email tatranakshay276@gmail.com
How will you serialize a singleton class without violating singleton pattern?
What is keyword in oop?
What is the purpose of sizeof operator?
What is string example?
Is set ordered in java?
What happens if a constructor is declared private?
What is the current version of java?
What are jee technologies?
What about main() method in java ?
How to sort array of 0 and 1 in java?
Can we define private and protected modifiers for variables in interfaces?
what type of questions asked for barclays technologies pune please send urgent
Can we extend immutable class?