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...

why constructor dont have returns type?

Answer Posted / venkatesh

Constructor donot return any data.it is mainly used for
initialization i.e one time activity like database
connectiviy, constructors are automatically invoked when
created objects created.

Is This Answer Correct ?    32 Yes 2 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

What is outofmemoryerror in java?

1027


Which of the following is not an isolation level in the JDBC

2126


What is an object's lock and which object's have locks in java programming?

1049


Explain the overview of UDP messaging.

1129


What is the difference between int and integer in java?

1033


How to display all the prime numbers between 1 and 100

1016


What is number data type in java?

1014


How hashmap works in java?

1047


How many java versions are there?

1055


What is use of arraylist in java?

1179


When throws keyword is used?

1002


What is the difference between public, private, protected, and friend access?

1046


What is nested interface?

1010


Can set contain duplicates?

996


Can a constructor be private and how are this() and super() method used with constructor?

1005