COMPUTER INNOVATIONS
Thursday, March 5, 2015
Get Current Thread in a java pgm
Get Current Thread
public class GetCurrentThreadExample
{
public static void main(String[] args)
{
Thread currentThread = Thread.currentThread();
System.out.println(currentThread);
}
}
No comments:
Post a Comment
Newer Post
Older Post
Home
Subscribe to:
Post Comments (Atom)
No comments:
Post a Comment