package com.logicbig.example.field;
import java.lang.reflect.Field;
public class IsAccessibleExample {
private static class Test {
private String str;
}
public static void main(String... args) throws NoSuchFieldException {
Field f = Test.class.getDeclaredField("str");
System.out.println(f.isAccessible());
}
}