Main.java Source code

Java tutorial

Introduction

Here is the source code for Main.java

Source

import java.lang.reflect.Modifier;

public class Main {
    public static void main(String[] argv) throws Exception {
        int mods = String.class.getModifiers();
        if (Modifier.isPublic(mods)) {
            System.out.println("class is public");
        }
    }
}