12.7k views
4 votes
True of False - use T or F The Throwable class implements the Serializable interface

User Castillo
by
6.4k points

1 Answer

2 votes

Answer:

T

Step-by-step explanation:

The java.lang.Throwable class implements the Serializable interface.

If a class implements an interface then all its subclasses also implicitly implement the interface.

Note that all Exception classes in Java inherit from java.lang.Throwable. Since Throwable is Serializable, by implication, all java Exception classes are also Serializable by default. That is, all exception classes can be serialized to a file or sent over the network is required.

User Chance Hudson
by
6.2k points