0

In Java, if a parent and child class share the same method with the same signature, what would happen if I didn't use the @override annotation in the child class? Would it still compile and execute?

Ole V.V.
  • 81,772
  • 15
  • 137
  • 161
  • That annotation is optional - if you don't use it nothing your program can still compile and run successfully. – assylias Aug 23 '18 at 06:16
  • Possible Duplicate to [When do you use Java's @Override annotation and why?](https://stackoverflow.com/questions/94361/when-do-you-use-javas-override-annotation-and-why). – samabcde Aug 23 '18 at 06:23

0 Answers0