there are three types of errors
example that uses each of these types of error.
in java:
for (int i=0; i<=2; i++){
if(i = 1){
System.out.println("the value of i is 0")
}
}
the above code has all the three types of error:
1. missing ; at the end of statement System.out.println("the value of i is 0") -- syntax error
2. if (i=1) is a logical error, equivalent operator must have been used intead
3. System.out.println("the value of i is 0"), is runtime compiler error or bug, the value of i is wrong printed on screen according to logic the value of i must be 1.
describe three types of errors. Construct an example that uses each of these types of error....