• 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
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic