What's the base class of all exception classes?
Answer / Amita Sharma
Exception is the root class for all exceptions in Java. All other exception classes such as RuntimeException, Error, and checked exceptions like IOException inherit from Exception.
| Is This Answer Correct ? | 0 Yes | 0 No |
What is string pool?
What is the importance of static variable?
Why are parameters used in functions?
What is synchronization? How it can be achieved?
Can we make the abstract methods static in java?
What is java full form?
What is the difference between I ++ and ++ I in java?
What is incompatible types in java?
Is hashmap thread safe?
What is consumer interface?
What is the difference between stream and buffer?
Given: 1. package test; 2. 3. class Target { 4. public String name = “hello”; 5. } What can directly access and change the value of the variable name? 1 any class 2 only the Target class 3 any class in the test package 4 any class that extends Target