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

Explain, why the constructor is required in implemented
class?

Answer Posted / vimalan

constructor is used for initializing the class
variables.if constructor is not there,variables might be
taken the garbage values.To avoid garbage
values ,constructor is used.

Example:
Java:
int i;

initial value i=0;

C:
int v;
v=8823

Is This Answer Correct ?    6 Yes 2 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

How do you sort in java?

947


What is output buffer?

988


Is a string literal?

1016


Which package has light weight components in java programming?

1085


How do I convert a numeric ip address like 192.18.97.39 into a hostname like java.sun.com?

972


What is the difference between import java.util.date and java .util?

1010


What is use of valueof () in java?

1003


Explain what is Marker interface?

1043


What is mean by encoding?

1034


What is the core java?

915


Explain the hierarchy of java exception classes?

1028


What is the purpose of a parameter?

1011


What are packages in java?

1483


What modifiers may be used with an inner class that is a member of an outer class in java programming?

1030


How does compareto method work?

919