class A extends Thread
{
public void run()
{
System.out.println("is alive moment ");
}
}
class F
{
public static void main(String[] args)
{
A r= new A();
A p= new A();
r.start();
System.out.println(r.isAlive());
p.start();
System.out.println(p.isAlive());
}
}
Preview:
downloadDownload PNG
downloadDownload JPEG
downloadDownload SVG
Tip: You can change the style, width & colours of the snippet with the inspect tool before clicking Download!
Click to optimize width for Twitter