Category ‧ Java

Break & Continue

Totally exit from loop(for,while,do~while) or from switch. Example… Output… exit only current turn from loop(for,while,do~while), ...

final

Variable Variable cannot be changed Method Method cannot be modified Class Nobody can extend this class That means, no body can override methods ...

super vs. this

super : used to access methods of the base class this : used to access methods of the current class The third line is printing “animal : eat” ...

Overloading vs. Overriding

When making multiple methods with using same method’s name Parameter has to be different When trying to edit parent class’ method. Method name ...