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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 27, 20262026-05-27T21:46:32+00:00 2026-05-27T21:46:32+00:00

I am using Eclipse Helios IDE for our Web Application development. Under Problems section

  • 0

I am using Eclipse Helios IDE for our Web Application development.
Under Problems section in Eclipse, for some of lines the description is displayed as “Dead Code”.

Could anybody please tell me what does Dead Code actually mean ?

Please see the screen shot for your reference.

enter image description here

For example this part is shown as dead code under Eclipse

 else {
        int length;
        if (ar != null)
            length = Array.getLength(ar);
        else
            length = 0; // This line is dead code
  • 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-27T21:46:33+00:00Added an answer on May 27, 2026 at 9:46 pm

    In Eclipse, “dead code” is code that will never be executed. Usually it’s in a conditional branch that logically will never be entered.

    A trivial example would be the following:

    boolean x = true;
    if (x) {
       // do something
    } else {
       // this is dead code!
    }
    

    It’s not an error, because it’s still valid java, but it’s a useful warning, especially if the logical conditions are complex, and where it may not be intuitively obvious that the code will never be executed.

    In your specific example, Eclipse has calculated that ar will always be non-null, and so the else length = 0 branch will never be executed.

    And yes, it’s possible that Eclipse is wrong, but it’s much more likely that it’s not.

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

Sidebar

Related Questions

We are using Eclipse Helios as our IDE . We have a class in
I am using Eclipse Helios and added Axis2 required libraries for a Web Application
I'm working on one application. I am using Eclipse php Helios IDE for developing
When using Eclipse PDT with XDebug to debug a PHP web application, is there
I'm using Eclipse (Helios) and I added some tasks in my java classes, using
I am using Eclipse Helios Version as an IDE and developing code using Java.
I'm using Eclipse Helios 3.6.2 for Android development and whenever I design a layout
I have a little problem with Tomcat. I'm using Eclipse Helios to luanch some
Using Eclipse Helios, I'd like to develop a JSF based application. I tried to
I am trying to build a dynamic web app using Eclipse Helios. I am

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.