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 are the types of cookies in java?
What is a context in java?
What is xml file in java?
What is entitymanager in java?
Explain working of java virtual machine (jvm)?
what about jdb and javadoc by example ?
How do I create an executable jar file?
Is lambda functional programming?
Is lambda cheaper than ec2?
What is the meaning of the words public, static and void?
What is the most important feature of java?
What is factory pattern in java?
Is lambda expression an object?
Is jvm a compiler or an interpreter?
How long can a lambda function run?