If you make any class as final, you cannot extend it.
The output for the above snippet will be Compile Time Error. Final method is inherited but you cannot override it. For Example:
The output for the above code snippet will be running....