Can we override constructors in java?
Answer / Radha Rani Prajapati
No, constructors cannot be directly overridden in Java. However, you can create overloaded constructors (multiple constructors with different parameters) to initialize objects differently.
| Is This Answer Correct ? | 0 Yes | 0 No |
What Is Resource Leak?
Can It is possible to synchronize the constructor of a Java Class?
can you use the two main method in same class?how?
4 Answers DELL, Geosoft, SparkTG,
Java is Pass by Value or Pass by Reference?
What is use of inner class in java?
What are different data types?
What type of language is java?
What happens if I remove static from main method?
How does java pattern compile work?
Is java type safe?
What is the static variable?
What is entry in java?