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 :


Please write to us at to report any issue with the above content.