what is the Use of throws exception?

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


Please Help Members By Posting Answers For Below Questions

Why Do I Get A "permission Denied" Error After Downloading The .jnlp Java Launcher For The Vkvm?

636


What flag up means?

607


How to check if linked list contains loop in java?

460


What is primitive data type in java?

545


What are java threads?

623






What are different data types?

577


Can we create a constructor in abstract class?

575


Does chrome use java?

523


What is serialization in java?

570


What does compareto () do in java?

574


Why is it important to initialize a variable?

496


How to run a JAR file through command prompt?

720


Can java list be null?

558


Explain about features of local inner class?

605


Explain the difference between map and flatmap stream operation?

823