what are the types of constructer explain with example
Answer Posted / kailash
there are two types of Constructors .
1. Parameterized Constructor inwhich we give arguments .
2. Default constructor , there no argument is given .
for each class there must be a defult constructor .
| Is This Answer Correct ? | 14 Yes | 2 No |
Post New Answer View All Answers
Which method is used to create the daemon thread?
Which is best framework in java?
What are tags in java?
Is jdk a compiler?
Where is singleton design pattern used in java?
What is a jpa repository?
What is a pojo class in java?
What are the rules regarding quotation marks?
What is the difference between lambda expression and anonymous methods?
What is cdi bean in java?
What is entitymanager in java?
How do I enable jvm?
What is flatmap java?
Do I need jdk or jre?
What is the difference between collection and stream?