What is runtime exception and compile time exception in jsp
Senthil B Kumar
Joined: Feb 09, 2004
When the user request for a JSP, it gets converted to a Servlet and this servlet is compilted and executed to give the output.
When your JSP has any syntax errors like the standard tag names are wrongly mentioned , or misspelling of keywords..etc.. , when compiling the converted Servlet, the compiler will give the compilation error.
but if its a kinda logical error, say you have instantiated an Object and at some situation it becomes nullyfied and you are trying to access its method now. this situation doesnt happens when you are compiling the code, it happens only when the code is executed, so these kind of errors are called RunTime exceptions, ie exceptions/errors occuring during runtime.
Work like you don't need the money. Love like you've never been hated. Dance like nobody's watching. Sing like nobody's listening. Live like it's Heaven on Earth.
Currently I Reside HereWEBlog