Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 8718011
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 13, 20262026-06-13T06:26:04+00:00 2026-06-13T06:26:04+00:00

As mentioned here : accessibility is a static property that can be determined at

  • 0

As mentioned here:

“accessibility is a static property that can be determined at compile time; it depends only on types and declaration modifiers.”

In this case, what does java.lang.reflect.Field.setAccessible(boolean) function really do in runtime?

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-06-13T06:26:05+00:00Added an answer on June 13, 2026 at 6:26 am

    setAccessible does not alter the accessibility level of a member. It only allows a certain member to be accessed through reflection alone. This doesn’t explicitly break the rules of accessibility, since your code doesn’t really access the member: it invokes a Reflection method that internally does some magic, accessing the member on your behalf.

    With this in mind there is also a crucial point to note: Java also has a very powerful and unpenetrable security system that can deny the usage of reflection to foreign code. Whenever needed, this mechanism can be used to truly prevent access to private members.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I can't see it as mentioned here: http://www.c-sharpcorner.com/uploadfile/mahesh/dll12222005064058am/dll.aspx Do I have to activate somehow
I know that can co-exists with web form no problem as Hanselman mention here
I've done all things mentioned here jsp page is cached, can not change it,
We can read a string array from xml file in android like mentioned here
Is there any way I can force WPF rendering tiers mentioned here? http://msdn.microsoft.com/en-us/library/ms742196.aspx For
As mentioned here , you can use the star for unpacking an unknown number
It is casually mentioned here that instance variables have __strong enabled per default -
I have found that I have a similar attack to the one mentioned here
Can anyone tell me where can I get the hgweb.cgi file mentioned here: https://www.mercurial-scm.org/wiki/HgWebDirStepByStep
When I open an issue, I don't see time tracking section (mentioned here. We

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.