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) throws Exception {

        Class cls = Class.forName("Main");

        ClassLoader cLoader = cls.getClassLoader();

        Class cls2 = Class.forName("java.lang.Thread", true, cLoader);

        System.out.println("Class = " + cls.getName());
        System.out.println("Class = " + cls2.getName());

    }
}