MCQs > IT & Programming > Java > Result of the following code? public class JQ { public static void main(String[] args) { f(); } private static void f() { f(); } }

Java MCQs

What is the result of the following code? public class JQ { public static void main(String[] args) { f(); } private static void f() { f(); } }

Answer

Correct Answer: It compiles, runs without issues, but never ends, because there's an endless loop.

Explanation:

Note: This Question is unanswered, help us to find answer for this one

Java Skill Assessment

Overall Skill Level-Poor

Your Skill Level: Poor

Retake Quizzes to improve it

search

Java Skill Assessment

Overall Skill Level-Poor

Your Skill Level: Poor

Retake Quizzes to improve it