File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
http://aspose.com/file-tools
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

Difference between compiler and runtime error

 
Denver Crisostomo
Greenhorn
Posts: 7
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
hi guys,

I'm worrying about the choices or possible answers I might see in SCJP examination. If I see choices like "compiler error will occur" and "runtime error will occur", how would I differentiate the two to choose the right answer?

thank you guys.

regards to all,
Denver
 
Pranav Bhatt
Ranch Hand
Posts: 284
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Try reading this-:
Compile and Runtime Errors in Java
 
Denver Crisostomo
Greenhorn
Posts: 7
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
thank you very much! this will be a big help
 
Raghavan Muthu
Ranch Hand
Posts: 3381
Mac MySQL Database Tomcat Server
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
In simple terms anything that relates to your syntax errors is called Compiler error and the logical error is runtime error! [of course which the compiler is not responsible for doing it]
 
Campbell Ritchie
Sheriff
Pie
Posts: 47222
52
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
There is a website with errors here. But I think the document Pranav Bhatt quoted is a lot better.
 
Denver Crisostomo
Greenhorn
Posts: 7
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
oh i see. so, errors that occurs upon compilation is compiler error. If it compiles properly and an exception occured while running, that is a runtime error
 
Raghavan Muthu
Ranch Hand
Posts: 3381
Mac MySQL Database Tomcat Server
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Originally posted by Denver Crisostomo:
oh i see. so, errors that occurs upon compilation is compiler error. If it compiles properly and an exception occured while running, that is a runtime error


Perfect!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic