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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 14, 20262026-06-14T14:44:35+00:00 2026-06-14T14:44:35+00:00

I am passing an object as a parameter to a method. i’d like to

  • 0

I am passing an object as a parameter to a method.
i’d like to know the name of that object–
that specific reference variable i’ve been using to pass the object to the method.
is there a way to find out about this?

Or, generally, is there a way to find out about the name of variable used by the
calling method to pass that value to the method invoked ? thanks in advance.

Note— regarding the first Q above: i am aware that an object can have
many handles pointing to it. this is rather a question of whether the
parameter names are getting “special attention” of some sort in the method, or aren’t of any concern once they pass the value.

  • 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-14T14:44:36+00:00Added an answer on June 14, 2026 at 2:44 pm

    I believe what you are asking for is more than the information placed on the stack by Java. The JVM has no reason to record the name of a variable when it takes the handle held by that variable and puts it into the stack to call a method. In fact, there’s usually no real reason to preserve that name past compilation. If you can give more information about why you’d want to do such a thing you’ll probably get more reasonable responses.

    If what you wanted were possible, it would be via a StackTraceElement, but looking at the API, there’s nothing like what you’re asking for.

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

Sidebar

Related Questions

I know that when passing an object by value to a function, the move
In java, when you pass an object to a method as a parameter, it
I have to pass the following object to a method, have that method modify
I understand that declaring variables of type Object or passing an Object variable as
I need to post a notification using postNotificationName:object:userInfo: method, and I'm passing a custom
I have a service method that accepts CultureInfo object as a parameter. I want
I am passing one parameter/object to the function RefValTest(object oIn) by the value but
I am passing an object like this: -@users.each do |user| %tr %td=link_to(user.first_name, users_user_path(user), :title
I am passing a JSON object as a reference to my custom jquery widget
I trying to pass a DateTime object as a query string parameter to a

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.