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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 11, 20262026-06-11T01:07:15+00:00 2026-06-11T01:07:15+00:00

I was just wondering if I was missing anything for the following question. I’ve

  • 0

I was just wondering if I was missing anything for the following question. I’ve posed the question with my answer after it.

What kind of objects can be passed into the following method? What methods could be invoked on obj inside this method?

public void doThis (Object obj)
{
    // some code
}

My answer:

The type of objects that can be passed in the above method are objects instantiated from actual classes that are super classes of the current class and also objects that have been instantiated in the current class itself. Additionally, objects that have been instantiated from other actual classes can be type casted into the current class or one of it’s super classes to be allowed as a parameter of the method doThis().

The methods that can be invoked inside the method include any public, protected, or private methods within the current class and any inherited methods from a superclass.

Is it correct?

  • 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-11T01:07:16+00:00Added an answer on June 11, 2026 at 1:07 am

    What kind of objects can be passed into the following method?

    Any subclass of Object, including Object itself.

    What methods could be invoked on obj inside this method?

    Any public/protected method defined in the Object class (e.g. toString, notify, wait, and etc.). This does not include methods defined in the subclass, unless you explicitly downcast.

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

Sidebar

Related Questions

Just wondering, having the following simple code: var object1 = { name: function (){
Just wondering is it possible to build CLI app that can be run from
Just wondering if anyone can optimize this usortMonths() function to be better? Basically I
just wondering:if I have two SortedDictionary objects, what is the fastest way to find
This is very odd, and I'm just wondering if anyone can explain this to
I can do this, I'm just wondering if there is a more elegant solution
Just wondering if I'm missing something here: $sql = SELECT DISTINCT usr.id, CONCAT(usr.username, '.PHP_EOL.'
I'm probably missing something obvious here as i'm just learning php, but just wondering
I'm new to JSP so with this question I'm really just wondering if I
just wondering if there is a way to reduce the amount of code needed

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.