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


Please Help Members By Posting Answers For Below Questions

What are tags in java?

648


What is the first argument of the string array in main method?

691


What is @override annotation in java?

675


Why do we only use the main method to start a program?

673


Are jvm’s platform independent?

681


How do I enable java in google chrome?

646


Which is best framework in java?

665


What is jboss in java?

671


What is meant by java se?

692


Do I really have to type in the programs in the book to try them out?

759


What is savepoint in java?

617


How do I install java re?

665


how can we create the ui using netbeans,having the code?

1804


explain isalive() method under thread class?

771


What is a controller in java?

641