Skip to content
Related Articles

Related Articles

Java | Functions | Question 5
  • Last Updated : 07 Jan, 2014
GeeksforGeeks - Summer Carnival Banner

In Java, can we make functions inline like C++?
(A) Yes
(B) No


Answer: (B)

Explanation: Unlike C++, in Java we can’t suggest functions as inline. Java compiler does some complicated analysis and may make functions inline internally.

Quiz of this Question

Attention reader! Don’t stop learning now. Get hold of all the important DSA concepts with the DSA Self Paced Course at a student-friendly price and become industry ready.

My Personal Notes arrow_drop_up
Recommended Articles
Page :