Category Language

Types of variables

Local variables are declared in methods, constructors, or blocks. Local variables are visible only within the declared method, constructor or ...

Enumeration vs. Iterator

Don’t be confused between Enum and Enumeration, totally different. With both, you can enumerate(iterate) the elements in a collection of ...

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 ...