153k views
3 votes
What method is overridden by the Exception class in order to provide a descriptive error message and provide a user with precise information about the nature of any Exception that is thrown?

1 Answer

6 votes

Answer:

toString() is the correct answer to the following question.

Step-by-step explanation:

ToString() function is the built in function that is used to convert the number into the string.

For example:

int n=25

var s=n.toString()

Here, we define an integer data type variable "n" and assign value to "25" then, we define the string data type variable "s" and assign n.toString() to convert number into string.

User KenB
by
6.3k points