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 / subrat

This is what differenciates constructor from a method. If
constructor have a return type then the JVM will not treat
constructor as constructor but as method.

Is This Answer Correct ?    5 Yes 4 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

What is compareto () in java?

984


What languages are pass by reference?

1056


What are the main uses of java?

992


What is meant by memory leak?

1079


What are the steps in the jdbc connection?

1026


How do I remove a character from a string in java?

967


What is a method vs function?

1047


Give me an example of array and linked list? Where they can be used?

1011


Differentiate between a class and an object.

1035


How many types of memory areas are allocated by jvm?

1045


What is a layout manager and what are different types of layout managers available in java awt?

1247


what is predefined function in java?

987


Why object class is super class for every class in java?

1031


Can a function return a function?

1044


Implement 2 stacks with just 1 array. The stack routines must not indicate overflow unless every slot in array is used.

1325