Compile and get javap's output for any class that contains final fields with "-constants" option, e.g. class SimpleClass { public final String FINAL_CONSTANT = "Lorem ipsum dolor sit amet..."; public static String STATIC_CONSTANT = "Lorem ipsum dolor sit amet..."; public static final String STATIC_FINAL_CONSTANT = "Lorem ipsum dolor sit amet..."; } The output message contains the value of the non-static final field: .... public final java.lang.String FINAL_CONSTANT = "Lorem ipsum dolor sit amet..."; public static java.lang.String STATIC_CONSTANT; public static final java.lang.String STATIC_FINAL_CONSTANT = "Lorem ipsum dolor sit amet..."; .... According to the help message only the "static final" constant values should be included ("-constants Show static final constants")
|