What is the difference between throw and throws?
Answer Posted / swapna kumari arava
By Using throw , we can create our own exceptions or user
defined exceptions and we can thorw , where as throws
defines the list of exceptions to be thown by the method.
| Is This Answer Correct ? | 16 Yes | 4 No |
Post New Answer View All Answers
What is Java Annotations?
What is slash r?
What are the types of inner classes (non-static nested class) used in java?
Explain about procedural programming language or structured programming language and its features?
What is the maximum size of a string in java?
What is difference between an object and a class?
What are advantages and disadvantages of OOPs?
Explain about oops concepts.
How does remove work in java?
How does java pattern compile work?
What are inbuilt functions in java?
What is integer valueof?
what is object-oriented programming in java?
How are variables stored?
What are the states of thread in java?