it will throw nothing
it may throw an integer
it may throw a character
it may not throw anything
Answer is Right!
Answer is Wrong!
The correct answer is: D. it may not throw anything.
The function void someFunction(int x) throw(char)
is declared to throw a
Option A is incorrect because the function is declared to throw a character, so it is possible that it will throw a character.
Option B
is incorrect because the function is declared to throw a character, so it is not possible that it will throw an integer.Option C is incorrect because the function is declared to throw a character, so it is not possible that it will throw a character.
I hope this explanation is helpful. Please let me know if you have any other questions.