Run time error
Sometimes a program may compile successfully creating the do not class file but may not run properly. Such programs may produce wrong result due to wrong logic or may terminate due to error such as stack overload most common run time error are : –
1. Dealing and integer by zero.
2. Accessing an element that is out of the bounds of an array.
3. Trying to store available into array in compatible class object type.
4. Trying to cast instants of a class to one of it subclasses.
5. Passing a parameter that is not in a valid range or value for a method.
6. Trying to illegally the state of a thread.
7. Attempting use a negative size for an array.
8. Converting invalid string to a number.
9. Accessing a character that is out of bouncing of a string.
No comments :
Post a Comment