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 do you mean by flow of struts?

1381


Why to use nested classes in java? (Or) what is the purpose of nested class in java?

1124


What do you mean by formatting?

1046


What is the difference between math floor and math round?

1109


what is predefined function in java?

1030


What is a ?

1270


when a request is generated from apache tomcat 5.5 and goes to oracle 10g or mysql,,, how the oracle or mysql reads the request as apache is a web server and oracle 10g is application server? when the oracle 10g provides response, how the apche tomcat reads it???

2222


State two differences between C and Java.

1393


How can you make sure that your singleton class will always return single instance in multi-threaded environment?

1086


What is Java Reflection API? Why it’s so important to have?

1243


What is the hashcode () and equals () used for?

1126


Difference between default and protected access specifiers?

1212


Write an algorithm for quick sort?

1087


What is null object in java?

1059


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

2005