Java | Functions | Question 5

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



My Personal Notes arrow_drop_up


Article Tags :
Practice Tags :


Be the First to upvote.


Please write to us at contribute@geeksforgeeks.org to report any issue with the above content.