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

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
How to decide fee structure in demo class?
Demo class is usually free but if student agrees to join you then fee depend on the no. of sessions/class irrespective of the duration of classes.
KM M Chary
Can someone do a BCA even if heâ??s not good in maths?
u can do provided u have to get good hold on maths with the days to go
Elnaz
0 0
5

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

Ask a Question

Related Lessons

useful table (आकारान्त स्त्रीलिंग )
नोट – लता, विद्या, माया ,माला, दया, शोभा, कोकिला, शिवा, छात्रा, कन्या, गंगा, बाला, राधा, सुषमा , संध्या आदि शब्दों के रूप “रमा” की तरह चलते हैं | विभक्ति एकवचन द्विवचन बहुवचन प्रथमा बालिका बालिके बालिकाः द्वितीया बलिकाम् बालिके बालिकाः तृतीया बालिकया बलिकाभ्याम् बालिकाभिः चर्तुथी बलिकायै बलिकाभ्याम् बालिकाभ्यः पन्चमी बालिकायाः बलिकाभ्याम् बालिकाभ्यः षष्ठी बालिकायाः बालिकयोः बालिकानाम् सप्तमी बालिकायाम् बालिकयोः बालिकासु सम्बोधन हे...

Importance of Constructor's Visibility.
While developing program or implementing Singleton pattern we have learnt to mention constructor as private and known reason is -> to blocked its direct call from outside of class. But did we think...


Why Indexing Should Start From Zero In Array ?
Why numbering should start at zero? To denote the subsequence of natural numbers 2, 3, ..., 12 without the pernicious three dots, fourconventions are open to usa) 2 ≤ i < 13b) 1 < i ≤ 12c)...

Learning tip
students if you want to learn eeverything for a long tym den what u learn please learn it and write it in a copy and revise it evry 15 days for about 15 minutes. Because whatever you learn and write in...

Nitin Panwar

0 0
0

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