multi-tasking to boost performance
We have two approaches to accomplish it: 1- Using Thread class public class Thread extends Object { … } 2- Using Runnable interface public interface Runnable { public void run();} Runnable is required for multithreading in JFrames