Answer the question
In order to leave comments, you need to log in
What is the answer given by this java code?
Welcome all. I really need help. I am going through a test task for admission to training java. They gave the task to insert the proposed code and send the result of the answer. It says my answer is incorrect. Can anyone tell me what this code is?
public class Test {
public static void main(String[] args) throws Exception {
MessageDigest md = MessageDigest.getInstance("MD5");
byte[] digest = md.digest("Hello, JM.".getBytes("UTF-8"));
for (byte b : digest) {
System.out.printf("%02x", b);
}
}
}
Answer the question
In order to leave comments, you need to log in
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question