Re: Making JAVA methods non-virtual



Sukanto wrote:
We know that, In Java every method is virtual by nature, i.e. always
late binding is performed.
But early binding helps in improving performance.

A modern JVM will be happy to inline your virtual methods. Even in C++ that cost of a virtual function is effectively zero.

Look for optimisations (if necessary) at a higher level.

Tom Hawtin
--
Unemployed English Java programmer
http://jroller.com/page/tackline/
.