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

how to delete urbanpro Account tuition
click on customer service --->manage account---> then select delete account that's it
Anoj

What is an Array?

An array is a collection of (same or different type of) items.In Java and C#, etc., the elements inside the array should be of the same type (e.g. ) while in languages like JavaScript and Python. The elements can be different types also(e.g. )
M
A and B toss a coin alternately till one of them gets a head and wins the game. if A starts first , find the probability that B will win the game.
U.k. Akshay posted a question in Class XI-XII Tuition (PUC) Question: A and B toss a coin alternately till one of them gets a head and wins the game. if A starts first , find the probability that B...
Kumar Upendra Akshay
2 0
6
What is the difference between urban area and rural area?
Urban areas are towns and cities.They are identified by man made structures. Rural areas are settled outside towns and cities. They generally have agricultural charactar.
Afrin
0 0
6

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

Ask a Question

Related Lessons

HRA: House Rent Allowance
What is HRA? HRA or House Rent Allowance is a component of salary provided by employer to his employee. If you receive HRA as part of your salary and you live in a rented accommodation, then you can claim...

SPECIAL EVENTS IN PARTNERSHIP
SPECIAL EVENTS IN PARTNERSHIP Admission Retirement Death Change in Ratio Combination When a New partner is admitted what are the changes occur? What are the things unavoidable changes? Can...

Securities Premium Sec. 52 Of CA, 2013
Meaning: Issue of share/debenture at a price more than the face value The premium amount is credited to separate account called ‘Securities Premium Account It is not forming part of share capital/debenture The...

Metals In Biology
The sodium-potassium ATPase: Na+/K+-ATPase is an enzyme found in the plasma membrane. It is sodium-potassium adenosine triphosphatase, also known as the 'Na+/K+ pump', 'sodium-potassium pump', or simply...

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

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