Win a copy of Java Mock Exams (software) this week in the Programmer Certification (OCPJP) forum!
  • Post Reply Bookmark Topic Watch Topic
  • New Topic

Compiler error or Runtime error?

 
Vineet Sharma
Ranch Hand
Posts: 51
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
A lot of times in the multiple choice questions, we are supposed to make a choice between compiler error or runtime error. How to make a choice?
 
Sunil K Bansal
Ranch Hand
Posts: 62
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Originally posted by Vineet Sharma:
A lot of times in the multiple choice questions, we are supposed to make a choice between compiler error or runtime error. How to make a choice?

there is nothing in it
you have to remember which are runtime errors
and which are compile time errors
these u can learn by practice
like ArrayIndexoutofBounds, ClassCastException are runtime errors
and IllegalArgumentException is a Compiler error
Bansal
 
What are you doing? You are supposed to be reading this tiny ad!
the new thread boost feature brings a LOT of attention to your favorite threads
https://coderanch.com/t/674455/Thread-Boost-feature
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!