I created a class that extends JButton and I provide the Enabled and Disabled text with an overridden setEnabled(boolean) method. This way I only have to specify the text in one place and the text changes based on the setEnabled parameter value.

Java contains several comparison operators (e.g., <, <=, >, >=, ==, !=) that allow you to compare primitive values. However, these operators cannot be used to compare the contents of objects.
Interface Comparable is used to allow objects of a cl…

Basic understanding on "OO- Object Orientation" is needed for designing a logical solution to solve a problem. Basic OOAD is a prerequisite for a coder to ensure that they follow the basic design of OO. This would help developers to understand the b…