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
Who developed rxjava?
How can the static main method use instance variables?
Why is struts used in java?
What is static class in java?
How do I install eclipse?
What is persistence xml in java?
Differences between intermediate operations and terminal operations of java 8’s stream api?
What is exe file in java?
Do I need both jdk and jre?
1.can i use super keyword in normal class(not inheritance) to call any method?if so how can i call particular variable? 2.In the inheritance how can i access the particular variable from the base class(it containing 5 variables) using super keyword?
Why bean class is used in java?
How do you run an executable jar file?
Is lambda functional programming?
What happens when you omit a brace or misspell one of the words, like public or
Is jdk required for netbeans?