what is the difference between ERROR and EXCEPTION?

Answer Posted / kasturi

error occur at compile time
it expection is also a error that ouccur at run time which can retify using try,throw and catch

Is This Answer Correct ?    4 Yes 1 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

What is abstraction with example?

607


What is the advantage of oop over procedural language?

628


can we make game by using c

3421


Why is destructor used?

583


#include #include #include #include void select(char *items, int count); int main(void) { char s[255]; printf("Enter a string:"); gets(s); select(s, strlen(s)); printf("The sorted string is: %s.\n", s); getch(); return 0; } void select(char *items, int count) { register int a, b, c; int exchange; char t; for(a = 0; a < count-1; ++a) { exchange = 0; c = a; t = items[ a ]; for(b = a + 1; b < count; ++b) { if(items[ b ] < t) { c = b; t = items[ b ]; exchange = 1; } } if(exchange) { items[ c ] = items[ a ]; items[ a ] = t; } } } design an algorithm for Selection Sort

2068






What is the problem with multiple inheritance?

586


What is difference between data abstraction and encapsulation?

617


What are main features of oop?

633


What is abstraction and encapsulation?

573


Following are the class specifications: class {int a}; class {int b}; Using friend funtion,calculate the max of two objects and display it.

2008


Describe these concepts: Polymorphism, Inheritance and Abstraction.

614


Explain virtual inheritance?

682


Can a varargs method be overloaded?

617


class CTest { public: void someMethod() { int nCount = 0; cout << "This is some method --> " << nCount; } }; int main() { CTest *pctest; pctest->someMethod(); return 0; } It will executes the someMethod() and displays the value too. how is it possible with our creating memory for the class . i think iam not creating object for the class. Thanks in Advance... Prakash

1698


Why is static class not inherited?

599