Home / MCQ Bank / Computer
Computer Constructors And Methods

What will be the output of the following Java program? class recursion { int func (int n) { int result; result = func (n - 1); return result; } } class Output { public static void main(String args[]) { recursion obj = new recursion() ; System.out.print(obj.func(12)); } }

Select the best option to verify your answer:
Show Correct Answer
Correct Answer: Option D • Runtime Error

Related Computer Questions

Which of the following logical operation can't be implemented by polynomial time graph manipulation algorithms using Binary Decision Diagrams? Does the following MySQL statement belong to the "Inequality condition"? SELECT product_type.name, product.name FROM product_type INNER JOIN Product ON product_type.dept=Product.dept WHERE product_type.name<>'customers_accounts'; Which of the following will display red alert box? Which type of queue is suitable for implementing a queue with priority levels? The instruction register