I have given a task to execute static block for every 20 seconds. I have a class that consists of a static block.
public class Hello{
static{
System.out.println("helloo...");
}
}
I know that static block executes when the class is loaded.
But i want to know is there any way to execute the static block for multiple times and how?