What is the difference between throw and throws?
Answer Posted / ravikiran
throw will declare an exception
throws will throw the exception to the calling method
Is This Answer Correct ? | 16 Yes | 8 No |
Post New Answer View All Answers
What is indexof in java?
What does int argc char * argv [] mean?
What is java regex?
Can a final variable be initialized in constructor?
What is purpose of find feature?
What is data type modifier?
How strings are created in java?
What is wrapper class example?
What do you mean Abstraction in java?
What are variable names?
What is class and object in java?
whar are the draw backs of programming lang step by step in Clang and next in C++ and next and in Java nad in .Net
When should I use singleton?
What is the functionality of the stub?
How is a structure different from array ?