Main.java Source code

Java tutorial

Introduction

Here is the source code for Main.java

Source

public class Main {

    public static void main(String[] args) {

        ThreadGroup group = new ThreadGroup("admin");
        Thread t = new Thread(group, "website");

        System.out.println("Threadgroup = " + group.getName());

        String str = group.toString();
        System.out.println(str);
    }
}