Multiple choice technology platforms and products

public void callMe(){ callMe();}//It will cause which error.

  1. StackOverFlowError

  2. OutOfMemoryError

  3. Process will not be terminate till the time we reboot the machine.

  4. Method will be called only 32768 times.

Reveal answer Fill a bubble to check yourself
A Correct answer
Explanation

The method callMe() calls itself recursively without a terminating base case, leading to infinite recursion. Each recursive call allocates a stack frame on the call stack until the stack's memory limit is exceeded, throwing a StackOverflowError.