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 is resultsetmetadata in java?
How do I install jdk?
What is a singleton in java?
What is cloning in java?
How do I enable jvm?
What is entitymanager in jpa?
Java prints out a ton of digits when I system.out.println() a double. How can I format it so it displays only 3 digits after the decimal place?
How does jpa repository work?
What if I do not provide the string array as the argument to the method?
What is crud operations in java?
Is java installed on windows 10?
Describe the principles of oops.
What is flatmap java?
What are microservices in java?
What are tlds in java?