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 the difference between length and length () in java?
Explain the key functions of data binding?
What are the different types of inner classes?
How will you serialize a singleton class without violating singleton pattern?
What is a text string?
What is the difference between == and === javascript?
How static variable work in java?
Why are the methods of the math class static?
Why does java have two ways to create child threads? Which way is better?
What is exception handling in java?
What is the difference between hashmap and hashtable? What is an interface?
What are synchronized methods ?
What is a return in java?
A person says that he compiled a java class successfully without even having a main method in it? Is it possible?
What is static class