1) Syntax❓ error :
A syntax error is an error in the syntax of a sequence🔢 of characters 🧑🎨or tokens 🎟that are intended 🥅to be written📝 in compile-time⏳.
Print(“hello”);
Here if we miss ‘ ; ‘ then it’s a syntax error
2) Logical ✳error :
Logical error occurs🍂 when there is a fault 🍂in the logical or structure🧱 of the problem.
Int array[10]
Is given and one takes array as
Array[10]=[1,2,3,4,5,6,7,8,9,10,11]
Here a logical error takes place
3) Compilation error⚠
Compilation error refers to a state🗽 when a compiler fails💣 to compile a piece 🧩of a computer program source📤 code, either due to errors in the code👨💻, or more unusually, due to errors in the compiler itself🧑.
Print(“hallo”
Here ‘)’ is excepted
4) Runtime🧑 error
A runtime🏃♀️ 🕒error is a program error that occurs while the program is running🏁
Int a;
a=”hallo”;
here you are giving𓁉 character value for ‘a’ variable containing🚮 the integer datatype.
Top comments (2)
Could you please remove the #adventofcode, #discuss, #tutorial tags here. This post is not appropriate for any of them.
Tnx bro , but I dont know which to tag