Checked Exception is compile time or runtime? [closed] Code Answer

Hello Developer, Hope you guys are doing great. Today at Tutorial Guruji Official website, we are sharing the answer of Checked Exception is compile time or runtime? [closed] without wasting too much if your time.

The question is published on by Tutorial Guruji team.

I read about Checked exception that it is checked by compiler , but its runtime only.

Is it correct?

If it is correct then how?

Answer

Checked exceptions are checked at compile time to ensure you are handling them, either by catching them or declaring the containing method throws the exception.

At runtime, there is no distinction between checked and unchecked exceptions: they are treated identically by the JVM. So “checked-ness” is purely a compile-time concept.

We are here to answer your question about Checked Exception is compile time or runtime? [closed] - If you find the proper solution, please don't forgot to share this with your team members.

Related Posts

Tutorial Guruji