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 ui framework in java?
What is mdb in java?
What is cdi in java?
What is @override annotation in java?
What is loose coupling in java?
What is injection in java?
Define network programming?
What is profile in java?
In java thread programming, which method is a must implementation for all threads?
How can I write a program that takes command line input?
What is singleton pattern in java?
How can c# app request minimum permissions? : java security
What does public static void main(string[]) mean?
What are the advantages of java 8’s date and time api over old date api and joda time api?
What is the difference between lambdas and delegates?