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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 6, 20262026-06-06T01:35:02+00:00 2026-06-06T01:35:02+00:00

when debugging java code, in the stack trace, I noticed that something in the

  • 0

when debugging java code, in the stack trace, I noticed that something in the following

ToyotaCar(AbstractCar).handle() line: 40

It looks like the class in the brace is the base class. Will eclipse always show the base class?

  • 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-06T01:35:03+00:00Added an answer on June 6, 2026 at 1:35 am

    If you invoke a method of a base class, the stack line will show both the base class (where the method is defined) and the class of the object that invoked such method.

    I assume here that you did something like

    ToyotaCar car = new ToyotaCar();
    car.handle();
    

    where ToyotaCar does not override the handle() method. The stack trace notifies you that your call to handle() is not served by the actual ToyotaCar, but by AbstractCar. Yet, you invoked it on a ToyotaCar object.

    By itself, this notation for a stack line might seem excessive if you don’t override base class methods. Consider, however, the case where you want to override the handle() method, but still need to call handle() on AbstractCar. You will need to issue a

    super.handle();
    

    inside ToyotaCar.handle(). When calling the handle() method on a ToyotaCar object, you will first call it as a ToyotaCar and then as an AbstractCar. The two stack lines will unambiguously allow you to tell one call from the other.

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

Sidebar

Related Questions

When debugging Java code, Eclipse has a feature that allows it to find all
I'm debugging some Java code that uses Apache POI to pull data out of
While debugging Java code that uses reflection in Eclipse, some times I need to
So I'm (remotely) debugging a java/jboss application in Eclipse, stepping through line by line.
Does NetBeans have something akin to Set Next Statement/Instruction when debugging in Java?
For debugging purposes, I would like my app to log to a java.util.logging.SocketHandler. Here's,
While debugging Java code, Strings in the views Variables and Expressions show up only
I'm debugging the JAVA code in Eclipse. Let's say there are 2 breakpoints inside
Debugging my code with Java's jdb. Am stuck at a point where my program
Does anyone have experience debugging java code (code lives on remote Linux server) using

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.