Load time error-
window.alrt('This is test msg');
here alrt is generate load time error
Run time error-
When code is correct there is no error by programmer, but when we run this code this will geneate error
var x=10, y=0;
Division by zero generate run time error
when we are trying with bad logic so this is call logical error
Suppose we assign a value to the wrong variable may cause a series of unexpected program errors
Alert box show ok button where as Confirmation box show ok and cancel button
Java is a object programming language like C++,C#. Java is a compiled language and generate exe and Run complete code, In Java we can create webapplication means we can Java(JSP) is a server side scripting language, Java(Android) is use for developing app. we can also create desktop software, scientific applications and embedded systems.
4 - Difference between undefined variable and undeclared variable.