adspace
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
Can we extract main method from another class?
Are jvm’s platform independent?
What is the locale class?
What do you understand by casting in java language? What are the types of casting?
What is the first argument of the string array in main method?
What is the java api?
What is the resourcebundle class?
what is reflection api? How are they implemented?
What if I write static public void instead of public static void?
How does java handle integer overflows and underflows?