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
Where is singleton design pattern used in java?
How do you run an executable jar file?
Why bean class is used in java?
How do I open the java control panel?
What are the rules regarding quotation marks?
Can the main method be declared final?
How do I find jre version?
What is the java virtual machine (jvm)?
What is the use of entity class in java?
In which language eclipse is developed?
Can the main method be overloaded?
What is the difference between ec2 and lambda?
What is a cookie in java?
Why is class forname used in java?
What is meant by code profiling?