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

Why does java not support operator overloading?

1122


How can you set the applet size?

1044


What do you understand by abstract classes?

1062


What are the types of strings?

1018


How do you check if a character in a string is a digit or letter?

1061


What is dynamic binding(late binding)?

1029


Is void a data type in java?

978


What are the fileinputstream and fileoutputstream?

1046


how are methods defined?

1037


What do you know about the garbage collector in java?

1079


Write a program to check string is palindrome without using loop?

1024


What is procedure overloading?

2302


What does it mean to flush a file?

1051


What is the purpose of garbage collection in java?

1085


Are registers volatile?

928