what is difference between throw and throws in exception?
Answer Posted / deewan singh
throw keyword is used to throw Exception from any method or static block in Java while throws keyword, used in method declaration, denoted which Exception can possible be thrown by this method.
Is This Answer Correct ? | 0 Yes | 0 No |
Post New Answer View All Answers
What does %d do in java?
Explain java coding standards for classes or java coding conventions for classes?
Can Exception handling we can handle multiple catch blocks?
Can we force garbage collector to run ?
What is the function of compareto in java?
How do you reverse a word in java?
Explain the different forms of polymorphism?
Explain the features of interfaces in java?
Can an unreferenced object be referenced again?
What about method local inner classes or local inner classes in java?
Are private methods final?
Why doesn't the java library use a randomized version of quicksort?
What is an anonymous class in java?
Can an integer be null java?
What is a final class ?