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 tags in java?
What is the first argument of the string array in main method?
What is @override annotation in java?
Why do we only use the main method to start a program?
Are jvm’s platform independent?
How do I enable java in google chrome?
Which is best framework in java?
What is jboss in java?
What is meant by java se?
Do I really have to type in the programs in the book to try them out?
What is savepoint in java?
How do I install java re?
how can we create the ui using netbeans,having the code?
explain isalive() method under thread class?
What is a controller in java?