Java Throwable getLocalizedMessage() methodIt is used to get a localized (or locale-specific) description of the Throwable. It modifies the description of Throwable according to the system's locale. It converts the message's language, date, time, numbers, etc. according to the region. SyntaxReturnIt returns a localized (or locale-specific) description of the Throwable. Example 1Test it NowOutput: Inside exceptionTest() method Throwing localized message!
Next TopicJava Throwable
|