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 8455991
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 10, 20262026-06-10T12:25:55+00:00 2026-06-10T12:25:55+00:00

I knew that in JAVA native is a special thing. It can do a

  • 0

I knew that in JAVA “native” is a special thing. It can do a lot of things. But I’m not able to read it right now. I don’t know how to… I knew it can call an other mathod in JAVA. My question is: can it call a private method? if it is a YES, then only in the same class or any other classes? if it can call other’s, then is it a problem that maybe it’s dangerous? that is, it broke the rules. Where can I get more about the NATIVE? can anybody show me a link?

  • 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-10T12:25:56+00:00Added an answer on June 10, 2026 at 12:25 pm

    The JNI Programmer’s Guide and Specification says this in “10.9 Violating Access Control Rules”:

    “The JNI does not enforce class, field, and method access control restrictions that can be expressed at the Java programming language level through the use of modifiers such as private and final. It is possible to write native code to access or modify fields of an object even though doing so at the Java programming language level would lead to an IllegalAccessException. JNI’s permissiveness was a conscious design decision, given that native code can access and modify any memory location in the heap anyway.”

    So the answers to your questions are:

    Can it call a private method?

    Yes.

    if it is a YES, then only in the same class or any other classes?

    Any class.

    if it can call other’s, then is it a problem that maybe it’s dangerous? that is, it broke the rules.

    The designers’ rationale for not attempting to enforce the normal Java access rules is clearly stated in the text quoted above. Yes it is potentially dangerous, but any use of JNI is potentially dangerous.

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

Sidebar

Related Questions

I knew that java.util.Calendar class method getInstance() returns a GregorianCalendar but how could i
I knew that we can create child themes for wordpress. But i want to
What is Rhino.Python ? I came across it and also knew that it can
One nice thing about Java, which was also a curse, is that you always
I knew the tile-map java or QT version can create map by GUI tools.
Can ASIHttpRequest call Restful web service ? I knew that Restkit is good at
We already knew that when we calling a method in Java, parameters and local
facebook has the facebook credit and I knew that they are testing on pay
When I wanted to get Android source code, I knew that I have to
I knew what is an intent in android. But i have a concern regarding

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.