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 / swapna kumari arava

By Using throw , we can create our own exceptions or user
defined exceptions and we can thorw , where as throws
defines the list of exceptions to be thown by the method.

Is This Answer Correct ?    16 Yes 4 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

What is the difference between length and length () in java?

946


Explain the key functions of data binding?

1021


What are the different types of inner classes?

1038


How will you serialize a singleton class without violating singleton pattern?

1965


What is a text string?

1090


What is the difference between == and === javascript?

1188


How static variable work in java?

1130


Why are the methods of the math class static?

1077


Why does java have two ways to create child threads? Which way is better?

1053


What is exception handling in java?

1042


What is the difference between hashmap and hashtable? What is an interface?

1170


What are synchronized methods ?

1116


What is a return in java?

1031


A person says that he compiled a java class successfully without even having a main method in it? Is it possible?

1059


What is static class

1121