Compile time polymorphism

In this article we are going to learn about compile time polymorphism in java. An example of polymorphism is method overloading. i.e. the same method name can be used for multiple purposes. compile time polymorphism can be achieved using method…

final variables in java

Hello all, We all know that the value of final variables cannot be changed in java. Consider following code

We are changing the value of someNumber here so obviously compilation is not successful as it is  final  variable and cannot be changed.…