Category: Java

Main() Method in enum

enum can have public static void main() method . main() method in enum executes just like its execution in any other class. The below example explains the main method in… Read more »

final class Inheritance

Is final class Inheritance Possible?? final class in Java can not be inherited. If you try to inherit / extend a class, it would give compile – time error. Since,… Read more »