What do you mean by: Syntax Error, Logical Error, Runtime Error?

Answer Posted / prathap reddy

A logic error (sometimes called a semantic error) is a bug
in a program that causes it to operate incorrectly, but not
to terminate abnormally (or crash). A logic error produces
unintended or undesired output or other behavior, although
it may not immediately be recognized as such

A syntax error ( IPA: /ˈsɪntæks ɛrə(ɹ)/ ) refers to an
error in the syntax of a sequence of characters or tokens
that is intended to be written in a particular programming
language.For compiled languages syntax errors occur
strictly at compile-time.

A runtime error is a computer error that appears in the
form of a message box consisting of a particular code along
with its corresponding definitions. Usually, a user will
notice that the computer becomes noticeably slow before a
runtime error appears.


Is This Answer Correct ?    29 Yes 8 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

In depth questions regarding the data structures and the Databases used in the Projects developed.

550


What is comparator interface used for?

532


Mention some drawbacks of the linked list.

572


Explain Queue

648


What is the impact of signed numbers on the memory?

535






Can you distinguish between ArrayList and Array?

587


What is the difference between hashset and hashmap?

534


When is a binary search algorithm best applied?

661


What is int data type?

545


Is treemap thread safe?

514


Why is reflection slower?

540


Is arraylist faster than array?

462


How is a queue works?

544


Will arraylist maintain insertion order?

503


Is heap sort stable?

493