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[] args) throws Exception {
        Class<?> clazz = String.class;
        int modifier = clazz.getModifiers();

        if (Modifier.isVolatile(modifier)) {
            System.out.println("isVolatile");
        }
    }
}