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 difference between throw and throws in exception?

Answer Posted / deewan singh

throw keyword is used to throw Exception from any method or static block in Java while throws keyword, used in method declaration, denoted which Exception can possible be thrown by this method.

Is This Answer Correct ?    0 Yes 0 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

What are java annotations?

1071


What is super keyword explain with example?

1205


What is the use of 'super' keyword inside a constructor?

909


Write a program to show whether a graph is a tree or not using adjacency matrix.

1036


Can a class have multiple superclasses?

1079


Explain the difference between an Interface and an Abstract class?

1115


When a lot of changes are required in data, which one should be a preference to be used? String or stringbuffer?

1192


How many ways can an argument be passed to a subroutine and explain them?

965


Differentiate between postfix and prefix operators in java.

1082


Explain the difference between abstract classes and interfaces in java?

1098


Is double bigger than float?

914


What is broken and continue statement?

943


How to invoke external process in java.

1024


How many bytes is string in java?

1150


What is a singleton in genetics?

1002