Skip to content
Related Articles

Related Articles

Improve Article
Save Article
Like Article

Java | Functions | Question 5

  • Last Updated : 28 Jun, 2021

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
Recommended Articles
Page :

Start Your Coding Journey Now!