C
C
Chevios2022-02-18 03:32:43
Java
Chevios, 2022-02-18 03:32:43

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

1 answer(s)
S
Sergey Karbivnichy, 2022-02-18
@Chevios

0b7b19a08983df20edbfaaa8fe60b428

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question