what is difference between throw and throws in exception?

Answer Posted / shiva

throw is used for to through exception system explicitly,and
throws is u sed for to throws exception means throws
ioexception and servletexception and etc.........

Is This Answer Correct ?    41 Yes 29 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

How many bytes is a unicode character?

513


What is the purpose of skeleton and stub?

590


Define the term string pool?

590


What does file separator do in java?

542


Is nullpointerexception checked or unchecked?

559






How variables are declared?

519


What are the steps involved to create a bean?

685


Can we increase array size dynamically in java?

517


What is incompatible types in java?

544


Why do we need data serialization?

549


How do you reverse a string in java?

589


What is the main difference between java platform and other platforms?

511


What is static import in java?

534


What is singletonlist in java?

514


What is a bufferedreader?

529