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 happens when heap memory is full?
What is a method header?
What is the class in java?
What are access specifiers available in java?
What is a treemap in java?
What are the three best choices for a development environment?
Tell me the Importent classes in net package?
What is the difference between the direct buffer and non-direct buffer in java?
Can we cast any other type to boolean type with type casting?
What do you mean by aggregation?
When should we create our own custom exception classes?
When a thread is executing synchronized methods , then is it possible to execute other synchronized methods simultaneously by other threads?
What is java util collection?
What is the use of singleton?
What is double in java?