java program for thread class methods on January 23, 2022 Get link Facebook X Pinterest Email Other Apps public class MyThread{ public static void main(String ar[]) { Thread t = new Thread("My First Thread"); t.start(); String str = t.getName(); System.out.println(str); }}OUTPUT Comments
Comments
Post a Comment