what difference between throw and throws in exception
handling.

Answer Posted / sidd

In case of java if any error occur deuring the exicution
time throw is use to throwing that that into our catch block
for handling and in case of throws if any error
will occur throws can handle that error.

Is This Answer Correct ?    1 Yes 0 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

How do you create a method in java?

553


Do loops java?

560


What is the old name of java?

513


How do you write methodology?

572


Can you call a method on a null object?

573






Explain super keyword in java.

595


Difference between vector and arraylist.

591


Why you should not use singleton?

555


Which types of exceptions are caught at compile time?

573


What is the purpose of java?

564


Give differences between Quicksort &Mergesort. When should these sorts be used andwhat is their running time in java?

693


What is method overloading in JAVA? Why is it not present in C ?

598


What is string [] java?

534


What are encapsulation, inheritance and polymorphism?

535


How do generics work in java?

528