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 are the differences between constructor and method of a class in Java?

Answer Posted / nashiinformaticssolutions

Initializing the state of the object is done by constructors. A function Object () { [native code] }, like methods, contains a group of statements (or instructions) that are carried out when an object is created. A method is a group of statements that work together to complete a certain task and return the outcome to the caller. A method has the option of working without returning anything.

Is This Answer Correct ?    0 Yes 0 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

What is meant by distributed application? Why are we using that in our application?

947


Why string objects are immutable in java?

1043


What are kinds of processors?

994


Is class forname reflection?

990


Are true and false keywords?

1027


Does java have a compiler?

1041


What is an infinite loop? How infinite loop is declared?

1109


What is sortedset in java?

1025


What are three types of loops in java?

1136


What are void methods?

1023


What is a substring of a string?

1162


What is the difference between size and length in java?

975


What is java and why do we need it? Explain

1138


Write a program to print the pattern given below

934


Can you access non static variable in static context?

1045