what is difference between throw and throws in exception?

Answer Posted / sakariya vikram

through is user defind exception this is created by user and
throughs is a jvm(system) defined exception.

Is This Answer Correct ?    1 Yes 1 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

What is difference between throw and throws ?

618


What is the difference between final, finally and finalize()?

554


How can I right-justify a string?

637


Which programming language is most secure?

547


There are two classes named classa and classb. Both classes are in the same package. Can a private member of classa can be accessed by an object of classb?

1011






How do you represent a space in regex java?

534


Which programming language is best in future?

532


What is the primitive type byte?

597


Where is core java used?

590


Give differences between Quicksort & Mergesort. When should these sorts be used and what is their running time?

580


What is meant by class loader? How many types are there?

680


What are the differences between Java 1.0 and Java 2.0?

1683


Can we have more than one package statement in the source file?

652


Is call by reference possible in java?

550


how to create multithreaded program? Explain different ways of using thread? : Java thread

541