what is the difference between ERROR and EXCEPTION?

Answer Posted / bhagya lakshmi

error is during compilation time it occurs without we post
and exception is we post it with throw,catch

Is This Answer Correct ?    11 Yes 3 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

How do you define social class?

600


Why do we use inheritance?

628


What are the benefits of interface?

579


write a code for this. serial_number contained in the header of the file will be read , if this serial number is less than a previous serial number within a successfully processed file, or is the same as another serial number within a successfully processed file, or if the field contains anything other than 7 digits, then the file must error with the reason ‘Invalid SERIAL_NUMBER’.

1780


What is encapsulation in oops?

536






What is the advantage of oop over procedural language?

628


Can enum be null?

587


Give an example where we have to specifically use C programming language and C++ programming language cannot be used?

1147


What do you mean by Encapsulation?

642


Why can't we have instance(stack) of a class as a member of the same class like eg.Class A{A obj;} as we can have self refential pointer

1621


What are the 4 pillars of oop?

672


Get me a number puzzle game-program

1694


What is abstraction encapsulation?

657


Why do we use polymorphism in oops?

581


What is this pointer in oop?

557