posted 14 years ago
Hello, Prakash,
First, please use the full form of words, as it gets difficult for the reader to understand your short hand. It's against
javaranch policy.
Well, for the question as you have asked, you got to be aware that what kind of checked exception will be thrown and case compile time error.
For example, if an object reference is null and you try to invoke some method over it, you will get a NullPointerException which
is a run-time exception. On other hand if you are use parse function from the Date class, it shows a checked exception so if you
forget to handle it or throw it, the compiler will generate a compile time error. So you need to understand the situations yourself
to acquaint yourself with such scenarios.
Hope this helps,