How to generate Random passwords using java.util.Random API?

in this example we will see sample program to  generate Random passwords using java.util.Random API

Output