Simply Easy Learning at your Fignertips

Lorem ipsum dolor sit amet, consectetur adipiscing elit. Ut elit tellus, luctus nec ullamcorper mattis, pulvinar dapibus leo.

Supported by 4k+

Top Categories

Lorem ipsum dolor sit amet, consectetur adipiscing dolor sit amet, consectetur elit.

css-tutorial

CSS Tutorials

Learn More

c-plus-plus

C ++ Tutorials

Learn More

react-native

React Native

Learn More

java-script

Javascript

Learn More

html-tutorial

HTML Tutorials

Learn More

php

Php Tutorials

Learn More

scala

Scala Tutorials

Learn More

angular

Angular JS 4

Learn More

c-plus-plus

C# Tutorials

Learn More

Latest CSS Tutorials

No posts found!

Latest JS Tutorials

No posts found!

Latest KoTLIN Tutorials

No posts found!

Code Editor

Lorem ipsum dolor sit amet, consectetur adipiscing dolor sit amet, consectetur elit.

				
					public class Main {
    public static void main(String[] args) {
        System.out.println("The name of the current thread is: "+Thread.currentThread().getName());
        System.out.println("Now, changing the name of the thread using the setName() method...");
        Thread.currentThread().setName("Main-Thread");
        System.out.println("The name of the thread after changing its first name: "+ Thread.currentThread().getName());
    }
}
				
			
				
					public class Main {
    public static void main(String[] args) {
        System.out.println("The name of the current thread is: "+Thread.currentThread().getName());
        System.out.println("Now, changing the name of the thread using the setName() method...");
        Thread.currentThread().setName("Main-Thread");
        System.out.println("The name of the thread after changing its first name: "+ Thread.currentThread().getName());
    }
}