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
In an htm form i have a button which makes us to open another page in 15sec.how will you do that?
Can we install jre without jdk?
What is map and flatmap?
Is java installed on windows 10?
What is entitymanager in java?
Is eclipse a jdk?
Is jpa a framework?
What is jndi datasource in java?
What is exe file in java?
What is java bean class?
How long can a lambda function run?
What is explicit casting?
What is cdi in java?
Write a program for the following topic - switch case,looping using fuction calling,nesting,console input output. Aim- to print a menu:- 1-series 2-single value. Each menu having sub menu armstrong or perfect.
Do I need both jdk and jre?