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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 13, 20262026-06-13T00:32:54+00:00 2026-06-13T00:32:54+00:00

Possible Duplicate: Runtime vs Compile time How should I know whether a specific line

  • 0

Possible Duplicate:
Runtime vs Compile time

How should I know whether a specific line of code in Java may throw a compile time or run-time error? Assuming that the specific line of code anyway throws and error.

  • 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-13T00:32:56+00:00Added an answer on June 13, 2026 at 12:32 am

    In Eclipse, compile time errors will be underlined in red. A compile time error is an error that is detected by the compiler. Common causes for compile time errors include:

    • Syntax errors such as missing semi-colon or use of a reserved keyword (such as ‘class’).
    • When you try and access a variable that is not in scope.
    • When you declare multiple objects with the same name.

    If the compiler detects any errors during compilation it will fail to build a new assembly (or class file in Java).

    Even if your code has no compile time errors, errors can still occur on run-time. Errors such as ‘logic errors’ and ‘runtime errors’. A good example of a runtime error is as followed:

    • Pretend you’re going to store an item in an array at index 5 but the array’s size is only 4. The compiler won’t detect an error here because it understands that the array size is subject to change but on run-time you’ll be thrown an exception.

    To detect which line exactly a run-time error occurs on you can use a combination of break points in Eclipse and proper exception handling.

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

Sidebar

Related Questions

Possible Duplicate: Compile-time and runtime casting c# As I understand it, the following code
Possible Duplicate: Understanding Compile- vs Run-time Dependencies I understand that a dependency with the
Possible Duplicate: Compile and run dynamic code, without generating EXE? How to Compile the
Possible Duplicate: Change icon on of an App in iOS 4 in run-time Is
Possible Duplicate: How to switch an Application between Themed and not Themed at run-time?
Possible Duplicate: C/C++: Array size at run time w/o dynamic allocation is allowed? In
Possible Duplicate: Is it possible to call Ant or NSIS scripts from Java code?
Possible Duplicate: Execute another jar in a java program Basically I want to run
Possible Duplicate: How to make pipes work with Runtime.exec()? Hello i wrote simple java
Possible Duplicate: C/C++: Array size at run time w/o dynamic allocation is allowed? I'm

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.