This week's book giveaway is in the Servlets forum.
We're giving away four copies of Murach's Java Servlets and JSP and have Joel Murach on-line!
See this thread for details.
The moose likes Programmer Certification (SCJP/OCPJP) and the fly likes plz help about  complie time and runtime errors Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of Murach's Java Servlets and JSP this week in the Servlets forum!
JavaRanch » Java Forums » Certification » Programmer Certification (SCJP/OCPJP)
Bookmark "plz help about  complie time and runtime errors" Watch "plz help about  complie time and runtime errors" New topic
Author

plz help about complie time and runtime errors

anurag priya
Ranch Hand

Joined: Dec 19, 2000
Posts: 72
dear all ! plz someone tell me the different conditions under which a compiletime and runtime error may occur ! plz send it in simplied form!
regards.
anurag.


Anurag priya
SCJP 2(83%); Brain Bench Certified for: Masters level EJB2.0(97%) - Masters level J2EE (83%) - BEA-WebLogic Application Server8.1 (86% )
bill bozeman
Ranch Hand

Joined: Jun 30, 2000
Posts: 1070
There are a lot of differences, but something you can kind of rely on, is if the compiler can see the error without processing any code, like doing arithmetic, method calls, etc..., then it will be a compiler error. Example you try to use a local varible before you initialize it, you try to convert an int to a byte without a cast.
If the compiler can't tell, but there is something that happens in your code that can cause an error, then it is a runtime error. For example, a file doesn't exist, or you try to divide an int by zero, or you perform a cast which turns out to be illegal.
Bill
 
With a little knowledge, a cast iron skillet is non-stick and lasts a lifetime.
 
subject: plz help about complie time and runtime errors
 
Similar Threads
Running C++ exe files
SQLJ and UDB 7.1
static methods can't be overidden why
jdbc connection
Why run time polymorphism