Golgappa.net | Golgappa.org | BagIndia.net | BodyIndia.Com | CabIndia.net | CarsBikes.net | CarsBikes.org | CashIndia.net | ConsumerIndia.net | CookingIndia.net | DataIndia.net | DealIndia.net | EmailIndia.net | FirstTablet.com | FirstTourist.com | ForsaleIndia.net | IndiaBody.Com | IndiaCab.net | IndiaCash.net | IndiaModel.net | KidForum.net | OfficeIndia.net | PaysIndia.com | RestaurantIndia.net | RestaurantsIndia.net | SaleForum.net | SellForum.net | SoldIndia.com | StarIndia.net | TomatoCab.com | TomatoCabs.com | TownIndia.com
Interested to Buy Any Domain ? << Click Here >> for more details...

What is the difference between throw and throws?
What is the similarity between try and throw?

Answer Posted / amar

throw is a statement level.throws is a method level.
In manual exception handling,we can also use the throws to
handle the excepions by the jvm,insted of handling there.

Is This Answer Correct ?    2 Yes 0 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

Can a method be overloaded based on different return type but same argument type?

950


Which eclipse is best for java?

987


What do you understand by synchronization?

1040


Can a main method be overloaded?

1008


What are new features introduced with java 8 ?

976


How many bytes is a string in java?

972


Write a java program for binary search?

1042


Can a method inside a interface be declared as final?

989


What is meant by 'Class access modifiers'?

1033


In a container there are 5 components. I want to display all the component names, how will you do that?

2177


Is arraylist dynamic in java?

973


What is the use of coding?

956


What is the collections api in java programming?

963


What are inner classes or non static nested classes in java?

1165


How do you start a new line in java?

973