why compiler do allow to write exceptions in throws section even if it can not be thrown?
Java exception handling concept. why do compiler allow to write exceptions in throws section even if it can not be thrown?