ExamVeda
Login
Home
This question belongs to Java Program Exceptions
Exceptions
?

In which of the following package Exception class exist?

Answer & Solution
Correct Answer: Option D
The Exception class is part of the java.lang package.

java.lang is one of the core packages in Java, automatically imported into every Java program.

The Exception class, being part of this package, is the base class for all exceptions in Java. It handles various types of runtime errors, allowing developers to manage error conditions gracefully.
Examveda
Question posted by Examveda
Community

Join the Discussion

No comments yet Be the first to discuss this question.