0

I took the answer of this question. My code is as follows:

import java.security.*;

..

MessageDigest md = MessageDigest.getInstance("MD5");

When I try to run it I get

Error:(11, 53) java: unreported exception java.security.NoSuchAlgorithmException; must be caught or declared to be thrown

Is this an issue with Java 11?

S. L.
  • 630
  • 8
  • 19
  • What is your question? The title talks about throwing a getInstance error, but the error in the text is a compiler error. Its very unlikely that this is java 11 related. You may need to [edit] your question and provide a [mcve] after clarifying it. – Robert Aug 14 '19 at 15:00
  • Reading the title, the security freak in me got excited that Java 11 no longer supports MD5. Maybe a Java 13 feature :p – cameron1024 Aug 14 '19 at 15:04

0 Answers0