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 a method ?

Answer Posted / janet

Methods are functions that operate on instances of classes
in which they are defined.Objects can communicate with each
other using methods and can call methods in other
classes.Method definition has four parts. They are name of
the method,type of object or primitive type the method
returns,a list of parameters and the body of the method. A
method's signature is a combination of the first three
parts mentioned above.

Is This Answer Correct ?    1 Yes 3 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

Can we have a method name same as class name in java?

1050


How does arraylist size increase in java?

1109


Where to store local variables?

1099


Write a program to check for a prime number in java?

1039


What is array in java?

998


Can a class have 2 constructors?

888


Why java is used everywhere?

1005


What do you mean by ordered and sorted in collections in java?

992


List out five keywords related to exception handling ?

1012


What is a local, member and a class variable?

1033


What is the purpose of a transient variable?

1060


What is a prefix function.write down a code to compute prefix function.

1056


What is boolean used for?

1029


Can we inherit inner class?

1012


What is string variable?

1048