what is constructor in java ?

Asked by Last Modified  

3 Answers

Learn Tuition

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

Can you please suggest me some books for child or youth psychology for a beginner student I want my career in counseling for students thank you.
1.Mental Health Disorders in Adolescents: A Guide for Parents, Teachers, and Professionals By Eric P. Hazen; Mark A. Goldstein; Myrna Chandler Goldstein 2. Adolescent Psychology around the World By Jeffrey...
Love
what do you mean by accounts
Financial records of an organization that register all financial transactions, and must be kept at its principal office or place of business. The purpose of these records is to enable anyone to appraise...
Aravindan

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

Ask a Question

Related Lessons

Central Dogma
The concept of cental dogma, can be in short noted as : Transcription + Translation Transcription is formation of RNA from DNA. Translation is formation of products from RNA. Dna...

Design Pattern
Prototype Design Pattern: Ø Prototype pattern refers to creating duplicate object while keeping performance in mind. Ø This pattern involves implementing a prototype interface which tells...

Consignment Accounts By CA Prashanth Reddy
A. INTRODUCTION When goods are sent by one person to another to be sold by the latter on behalf and at the risk of the former, the transaction is known as consignment. The person who sends the goods...

Studying mathematics and related subjects
learning mathematical concepts requires two preconditions - that you understand and write rigorous proofs for even simple concepts and that you understand it intuitively. If either you didnt develop an...

N-Type Silicon
• Pentavalent impurities such as phosphorus, arsenic, antimony, and bismuth have 5 valence electrons. • When phosphorus impurity is added to Si, every phosphorus atom’s four valence electrons...

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