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 / prabakar

throw:
raised the exception which are occured as a method body.

Throws:
it's the communication bridge between calling function and called function.

Is This Answer Correct ?    1 Yes 0 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

How to sort array in descending order in java?

961


What is the purpose of using break in each case of switch statement?

1068


What is difference between path and classpath?

1265


Why 1 is not a prime number?

1074


From the two, which would be easier to write: synchronization code for ten threads or two threads?

1103


What is volatile data type?

1067


Can private class be inherited in java?

1086


What is callablestatement? How you can call stored procedure to pass in parameter?

1068


Will the compiler creates a default constructor if I have a parameterized constructor in the class?

1165


What is scope & storage allocation of static, local and register variables? Explain with an example.

1051


Is null an object java?

1044


What is an example of character?

1203


Can you run java program without main method?

1115


Is singleton class immutable?

1016


Write a program to find the whether a number is an Armstrong number or not?

1073