title: How do I determine if a field is private or protected using reflection in Java?
body: <p>From this <a href="https://stackoverflow.com/a/12784901/5450594">SO answer</a>, I've gathered you can't access a private field without setting <code>setAccessible(true)</code>. I could determine if a field is public or not with <code>isAccessible()</code>. However, how would I determine if it were public or private?</p>