gpere9176 gpere9176
  • 14-07-2019
  • Computers and Technology
contestada

What is meant when it is said that an exception is thrown?

Respuesta :

Limosa
Limosa Limosa
  • 20-07-2019

Answer:

It is an error in the program that warns the users that something is wrong in the data they have entered

Explanation:

Null pointer exception, ArrayIndexOutOfBounds and arithmetic exception are some of the exception which can be thrown in a code segment. example if we use divide by zero then the exception to be used is arithmetic exception. Similarly we can also define our own conditions for throwing an exception using the keyword throw. Example throw exception class("error message"),

Answer Link

Otras preguntas

If a 35 ft rope is cut into two sections with one section 6 times as long as the other section, how long is the shorter piece?
let f(x)=x+8 and g(x)=x^2 -6x-7. find f(g(2))
Is velocity related to momentum
For what values of the variable is each rational expression undefined2x-3/2x-1( step by step please)
Is velocity related to momentum
let f(x)=9x-2 and g(x)=-x+3. find f(g(x)).
let f(x)=x^2 - 16. find f^-1(x).
Helen Grey By Christina Georgina Rossetti Because one loves you, Helen Grey, Is that a reason you should pout, And like a March wind veer about, And frown, and
For what values of the variable is each rational expression undefined2x-3/2x-1( step by step please)
Which choice is equivalent to the expression below? 5x sqrt 2 - 2 sqrt 2 + 2x sqrt 2 A. 7x sqrt 2 - 2 sqrt 2 B. 2x^2 sqrt 2 C. 3x sqrt 2 D. 7x^2 sqrt 2