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

  • Home
  • SEARCH
  • 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 6250841
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 24, 20262026-05-24T13:30:14+00:00 2026-05-24T13:30:14+00:00

I keep seeing the env interface pointer used with and without dereferencing, for example

  • 0

I keep seeing the env interface pointer used with and without dereferencing, for example

env->DoSomething(arguments)

vs.

(*env)->DoSomething(env, arguments)

Are they actually different things? Is one from an older JNI implementation?

  • 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-05-24T13:30:16+00:00Added an answer on May 24, 2026 at 1:30 pm

    It’s the difference between writing jni code in C and C++, from wikipedia:

    Note that C++ JNI code is syntactically slightly cleaner than C JNI
    code because like Java, C++ uses object method invocation semantics.
    That means that in C, the env parameter is dereferenced using (*env)->
    and env has to be explicitly passed to JNIEnv methods. In C++, the env
    parameter is dereferenced using env-> and the env parameter is
    implicitly passed as part of the object method invocation semantics.

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

Sidebar

Related Questions

I keep seeing DDD (Domain Driven Design) being used a lot in articles -
I keep seeing images with the file format '.svg.png'. Not sure how they work
I am trying to learn jQuery. I keep seeing people using different methods of
I'm trying to learn my way around some Mirth code. I keep seeing things
I keep seeing the phrase duck typing bandied about, and even ran across a
I keep seeing code that does checks like this if (IsGood == false) {
I keep seeing people say that exceptions are slow, but I never see any
I keep getting tasks that are above my skill level. How can I address this without coming accross as grossly incompetent?
I keep hearing that div tags should be used for layout purposes and not
I keep seeing this referred to on DotNetKicks etc... Yet cannot find out exactly

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.