Java Open New Thread to Run Static Method

description: new thread to run static method in java

Code for run static method in new thread in java

1
2
3
4
5
new Thread(new Runnable() {
public void run() {
staticMethod();
}
}).start();