java
java
We can initialize final variable at time of and declaration and in constructor, not
that the final variable should to static.
Recommended way of declaring constant:
Final int LOG_IN_TIME= 10;
Enum with switch:
Super keyword:
We cannot use private and protect access modifier with class.
Method hiding:
In above example we are accessing static method using class name not object,
called method hiding.
Using throws we are postponing exception to its calling method.
Below exception is not handled as we used throws: