what is constructer?what are the type of constructer with
example.
Answer Posted / sandesh nawadkar
Constructor is a same as method but it isnot exactly a
method . It has same name as a Class. It has access
specifier but not return type. Constructor is used to
create and initialize objects at runtime.
There are different types of constructors in different oop
languages.
e.g. Consider, java language-there are two types:-
1. Default
2. Parameterized.
| Is This Answer Correct ? | 12 Yes | 1 No |
Post New Answer View All Answers
What is type inference? Is type inference available in older versions like java 7 and before 7 or it is available only in java se 8?
What is an action class in java?
What is gpt and gpc? : java security
What is the purpose of jdk?
When a thread is created and started, what is its initial state?
Why struts framework is used in java?
How do I enable java in google chrome?
What type of parameter passing does java support?
Why sun introduce concept of anonymous class? What is need and real life use of anonymous class
What is meant by annotation in java?
How do javabeans work?
In java thread programming, which method is a must implementation for all threads?
What is jsr in java?
What are the rules regarding quotation marks?
What is cdi in java?