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
What are jpa repositories?
Why oracle type 4 driver is named as oracle thin driver?
What is meant by annotation in java?
What is dependency injection in java?
Please can anybody explain what exactly "the project architecture" means???
What is java language expression?
Is jdk a compiler?
Why java is better than node.js?
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?
Explain the inheritance principle.
How does jpa repository work?
What is flatmap in rxjs?
What is a java proxy?
How should I format my code? How should I comment my code?
Which interceptor is responsible for setting action javabean properties?