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?

Answer Posted / suresh

mainly throw is used for user defined exceptions and throws
is used for compiler defined excetions.
Ex: if u get a NullPointer exception then we throws this
excetion to the compiler defined excetion class.

if u get malformed or ur own excetion in this time we to
throw this to our own defined excetion

Is This Answer Correct ?    2 Yes 1 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

How to sort an array from smallest to largest java?

945


Which programming language is most secure?

941


Explain public static void main(string args[]) in java.

934


What is the difference between the font and fontmetrics classes in java programming?

1027


what is the constructor and how many types of constructors are used in java?

949


Why are parameters used in functions?

942


Which variables are stored in heap?

977


Are registers volatile?

885


What are internal and external variables?

908


What is the purpose of final keyword and when to use it?

943


What is entry in java?

970


What is a hashmap used for?

1175


Write a java program to count the number of words present in a string?

940


What is the requirement of thread in java?

997


How do you clear a method in java?

958