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 do you understand by downcasting?
Can we extract main method from another class?
What is an entity in java?
How do I enable jvm?
What is the difference between java se and java ee?
What are the benefits of a jar file?
What is serializable in java?
What is cloning in java?
What is cdi in java?
Explain different way of using thread?
Who developed rxjava?
What is data encapsulation?
What does persist mean in java?
What is lambda used for?
How do I enable java in google chrome?