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
Explain issues of old java date api?
What are microservices in java?
How do you create a jar file?
What is a controller in java?
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 lsdou? : java security
What is the locale class?
What is the use of servlet in java?
Please can anybody explain what exactly "the project architecture" means???
What is ioexception in java?
Which is more secure: java or activex? : java security
What is jpa implementation?
What are jpa annotations?
What is hql in java?
What is http session in java?