Can a class have 2 constructors?
Answer / Arti Kumari
"Yes, a class in Java can have multiple constructors. Each constructor should have a unique parameter list, allowing for flexibility in creating objects with different initial values."
| Is This Answer Correct ? | 0 Yes | 0 No |
What is percentage in java?
what is the use of clone method? why user cant overwrite in sub class without its proper defination.
What is codebase?
Why is singleton instance static?
How is rounding performed under integer division?
What are the major drawbacks of external iteration?
Write java program to reverse string without using api?
what is the use of custom tags? with example?
What are the wrapped, classes?
Can we have two methods in a class with the same name?
Difference between Preemptive scheduling vs. Time slicing?
What is static and final keyword in java?