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 a ternary operator in java? What is an interface?
What is data member in java?
What is the base class of all classes?
what do you mean by classloader?
How do you remove duplicates in java?
What is the program compilation process?
What is the size of arraylist in java?
What is difference between class and object in java?
Should a main method be compulsorily declared in all java classes?
Explain the differences between abstraction and encapsulation?
What is the disadvantage of java?
Can constructor be protected in java?
What is illegal identifier in java?
How can constructor chaining be done using this keyword?
What do you meant by active and passive objects?