Helping ordinary people create extraordinary websites!
   

Why are there no inline functions in the Java language?

Wednesday, 26th August 2009
by goodguy9994


Java does not have any inline functions like C++. Why is that?





bbrainz
Yes, there is no inline functions in Java.

That means you can not make your own inline methods in java but the JVM can automatically inline appropriate and frequently used methods as it determines what or which would could save time.

Inline functions present a problem for debuggers and profilers, because the function is expanded at the point of call and loses its identity. A compiler will typically have some option available to disable inlining.

Inlining tends to blow up the size of code, because the function is expanded at each point of call.

Thank you.
Friday, 28th August 2009
Votes:
26
13

More Java Help:
» Source code to implement non persistent cookie?
» How to add a playlist in a JMF media player code?
» How to record user data sharing preferences with Java?
» Hi I want to design chat software based on internet for mobile phone, Is there any script for that ?
» How to print digital digits in java using applets or swings
» Graphical password in java
» A simple way to read a CSV file into Java?
» Security:portal-identity problem