Answer Posted / niranjanravi
it is used to throw the list of exceptions that a method
has to throw.
Syntax:
returntype methodname(list of args)throws
exception1,exception2{
body
}
Is This Answer Correct ? | 15 Yes | 6 No |
Post New Answer View All Answers
What is a java lambda expression?
What if constructor is protected in java?
How do you get length in java?
Describe what happens when an object is created in java ?
What are the 3 types of control structures?
Can we declare main () method as non static?
What is update method called?
How to create an interface?
Explain jdk, jre and jvm?
What is consumer in java?
What is the difference between declaration and definition in java?
What is the simpletimezone class in java programming?
Given a singly linked list, determine whether it contains a loop or not without using temporary space?
What is starvation?
Can we increase size of array?