What is the difference between throw and throws?

Answer Posted / sushma

'throw' exception is thrown manually and 'throws' exception
is thrown predefindly.

Is This Answer Correct ?    23 Yes 9 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

How do you reverse a string in java without using string buffer?

795


What is unicode with example?

796


What is covariant return type?

828


Can you use this() and super() both in a constructor?

721


What is finalize()?

862


Is arraylist ordered?

759


What is oops in java?

759


Hi.... I applied for the post of scientific officer/Engineer-SB(Programmer).Please post the syllabus and sample papers.

1732


What is skeleton and stub?

756


What is the difference between jvm and jre? What is an interface?

767


How many bytes is a string?

820


Define how can we find the actual size of an object on the heap?

886


Describe 2 different ways to concatenate two strings.

882


What is a ternary operator in java?

739


How big is a gigabyte?

813