what is constructor in java ?

Asked by Last Modified  

3 Answers

Follow 0
Answer

Please enter your answer

Tutor for kids

Constructor is required in java to directly call a function or method without making object of the class.
Comments

Coaching

Java constructors are the methods which are used to initialize objects. Constructor method has the same name as that of class, they are called or invoked when an object of class is created and can't be called explicitly. Attributes of an object may be available when creating objects if no attribute...
read more
Java constructors are the methods which are used to initialize objects. Constructor method has the same name as that of class, they are called or invoked when an object of class is created and can't be called explicitly. Attributes of an object may be available when creating objects if no attribute is available then default constructor is called, also some of the attributes may be known initially. It is optional to write constructor method in a class but due to their utility they are used. read less
Comments

http://javarevisited.blogspot.in/2012/12/what-is-constructor-in-java-example-chainning-overloading.html
Comments

View 1 more Answers

Related Questions

If the zeroes of polynomial x3 – ax2 + bx – c are in AP then show that 2a3 – 9ab + 27c = 0
zreors of polynomial means roots of polynomial if the roots of polynomial are in AP then the roots are A+d, A, A-d Sum of the roots = (-) Co-efficient of X^2/ Co-efficient of X^3 = A+d +A +A-d ...
Gerda
0 0
5

Do I need to purchase drums .. ?

Preliminary you can practice with online drums application available in Playstore, but it's obviously better if you buy it at least second hand for better learning. ð??? hope you like my answer.
Pratik
What is the difference between primary and secondary data?
Primary data is taken by survey like poll, questionnaire etc. like if a company wants to know its popularity on a scale of 10, then it asks to rate itself by a randomly selected 10 K people. if you use...
Raindial
Why do animals need to take in oxygen?
Oxygen burns the food within their bodies and releases energy for various activities and thus it helps animal to be alive.
Harsha

Now ask question in any of the 1000+ Categories, and get Answers from Tutors and Trainers on UrbanPro.com

Ask a Question

Related Lessons

What Are The Two Sources Of Stockholders' Equity?
The two basic sources of stockholders’ equity are: Contributed Capital Retained Earnings i. Contributed Capital: One of the two main sources of stockholders’ equity is contributed capital....
K

Khushboo B.

1 0
0

Managerial Economics: Regression Techniques
Regression is a statistical technique that helps in qualifying the relationship between the interrelated economic variables. The first step involves estimating the coefficient of the independent variable...

Today Is Demonetisation. What is Next?
Mr. Modi taught us the term "Demonetisation". I need not to write its meaning as most of us have learned its true meaning through practical experience. Impact of Demonetisation: 1. Dollar Rate conversion...

Class 11: Important Prefixes In The Si System
Mostly commonly terms like "picometre", "nanometre" needs to be converted to SI units to solve in one unit correctly. Micrometre, picometre, nanometre are often used. One can convert them in metres, etc (units).

An Interesting Discussion About Malloc And Calloc
What are malloc and calloc? Simply putting they are the predefined functions in C language. Malloc( ) and calloc( ) are two such functions which are used for more or less identical purpose and that is...

Recommended Articles

Once over with the tenth board exams, a heavy percentage of students remain confused between the three academic streams they have to choose from - science, arts or commerce. Some are confident enough to take a call on this much in advance. But there is no worry if as a student you take time to make choice between - science,...

Read full article >

E-learning is not just about delivering lessons online. It has a much broader scope that goes beyond manual paper or PowerPoint Presentations. To understand the reach of E-learning and how the whole process works in developing the Educational system, we will discuss a few points here. Let us find out how this new learning...

Read full article >

With the mushrooming of international and private schools, it may seem that the education system of India is healthy. In reality, only 29% of children are sent to the private schools, while the remaining head for government or state funded education. So, to check the reality of Indian education system it is better to look...

Read full article >

Learning for every child starts from a very young age. While the formal methods include school curriculums and private lessons, the informal methods include dancing, music, drawing, and various fun-filling activities. Playing games and practising these types of activities helps the children get out of boredom and...

Read full article >

Looking for Tuition ?

Learn from the Best Tutors on UrbanPro

Are you a Tutor or Training Institute?

Join UrbanPro Today to find students near you