Re: Making JAVA methods non-virtual
- From: Thomas Hawtin <usenet@xxxxxxxxxxxxxxxxx>
- Date: Thu, 29 Jun 2006 19:05:29 +0100
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/
.
- Follow-Ups:
- Re: Making JAVA methods non-virtual
- From: Sukanto
- Re: Making JAVA methods non-virtual
- References:
- Making JAVA methods non-virtual
- From: Sukanto
- Making JAVA methods non-virtual
- Prev by Date: Making JAVA methods non-virtual
- Next by Date: Reading in a Dictionary File
- Previous by thread: Making JAVA methods non-virtual
- Next by thread: Re: Making JAVA methods non-virtual
- Index(es):