Getting value of public static final field/property of a class in Java via reflection
- by Viet
Say I have a class:
public class R {
public static final int _1st = 0x334455;
}
How can I get the value of the field/property "_1st" via reflection?