Can a class have 2 constructors?



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

Post New Answer

More Core Java Interview Questions

What is percentage in java?

1 Answers  


what is the use of clone method? why user cant overwrite in sub class without its proper defination.

2 Answers   TCS,


What is codebase?

1 Answers  


Why is singleton instance static?

1 Answers  


How is rounding performed under integer division?

2 Answers   Satyam,


What are the major drawbacks of external iteration?

1 Answers  


Write java program to reverse string without using api?

1 Answers  


what is the use of custom tags? with example?

1 Answers   Photon,


What are the wrapped, classes?

1 Answers  


Can we have two methods in a class with the same name?

1 Answers  


Difference between Preemptive scheduling vs. Time slicing?

1 Answers  


What is static and final keyword in java?

1 Answers  


Categories