Originally posted by pradeepta chopra:
are unchecked exceptions and those thrown by the JVM the same?
Short Answer: yes
Longer Answer:
Anything that prevents compilation = checked.
These are "checked for" during compilation - For instance, the compiler makes sure you handle IOException if you're reading from a file.
Anything that surprises you during runtime = unchecked.
If your task is to "print the 2nd command line argument" and are only supplied with one argument, you'll get an unchecked ArrayIndexOutOfBoundsException when you try to access arg[1].
I would highly recommend making small examples to help clarify any "what happens if" doubts. I like Eclipse as it quickly alerts me to compiler issues while I type.