A short essay in which you discuss the different program err

A short essay in which you discuss the different program errors that are likely to occur and how they should be handled within scripts.

Solution

There are discrete kind of errors in a programm which are likely to occur as below

1.logical errors: this kind of error origins programm to manipulate wrongly but not to unsucess.compilation and execution of programm is possible but the required output is unabe to see.this kind kind of errors are able to eliminate with the assistance of attentive plan of proframm and selecting the better algorithm.

2.run time errors: additionally known as execution errors.it is observed when a software programm intends to endeavor a few illegal operation.it is handled and prevented by using the try/catch/final block as shown below.

class TryExample

{

public static void main(string args[])

{

int a,b=c=2,d;

try

{

d=b-c;

a=17/d;

}

catch arthematicException e)

{

systemout.println(\"Division-by-Zero exception\");

}

}

3.syntaxtical errors: These errors arises when the programmer escort to syntax rules which controls the formatting of commands.it is simple to attach once the error is comprehended.utilizing the deatils offered by the compiler error message ,elimination is possible at script generation and testing.

A short essay in which you discuss the different program errors that are likely to occur and how they should be handled within scripts.SolutionThere are discret

Get Help Now

Submit a Take Down Notice

Tutor
Tutor: Dr Jack
Most rated tutor on our site