Hacker Newsnew | past | comments | ask | show | jobs | submitlogin

Why? The JVM has complete knowledge over the entire code base at runtime. It knows which methods require virtual function calls and which ones are just regular function calls. If nothing extends the class, then there will be no virtual functions in the entire class. If something extends the class but it does not override any methods then there again will be no virtual functions. If a class overrides a single method, only that method is going to be a virtual function.


Guidelines | FAQ | Lists | API | Security | Legal | Apply to YC | Contact

Search: