Google+ Followers

Connect

Get Updates Via Email

Enter your email address:

Delivered by FeedBurner

Sunday, 10 November 2013

Java Program: Simple Thread Example

public class threadexample {
    public static void main(String args[])
    {
        Thread t=Thread.currentThread();
        System.out.println("Current Thread: "+t);
        t.setName("Thread Example");
        System.out.println("Current Thread Name changed as: "+t);
    }

}

output

1 comment :

  1. I have read your blog its very attractive and impressive. I like it your blog.

    Java Online Training Java EE Online Training Java EE Online Training Java 8 online training Core Java 8 online training

    Java Online Training from India Java Online Training from India Core Java Training Online Core Java Training Online Java Training InstitutesJava Training Institutes

    ReplyDelete

Share this to your friends