Java final method

If you make any method as final, you cannot override it.


\begin{lstlisting}
class Bike{
final void run(){System.out.println(''running''...
...ing args[]){
Honda honda= new Honda();
honda.run();
}
}
\end{lstlisting}

The output for above snippet will be Compile Time Error.