+ Reply to Thread
Results 1 to 4 of 4

Thread: difference between runtime exception and compile time exception ?

  1. #1
    Hosting Master Joyadelfin is on a distinguished road
    Join Date
    Aug 2017
    Location
    Jaipur
    Posts
    141

    difference between runtime exception and compile time exception ?

    Hello Dear,

    Please Tell Me What is the difference between runtime exception and compile time exception ?

  2. #2
    HWHT Starter Asfinstitute is on a distinguished road
    Join Date
    Jun 2019
    Location
    delhi
    Posts
    5
    Asf Institute Students have made us by getting top rank in various examinations like Best institute for csir net gate chemistry in delhi, CSIR net gate in chemistry etc. Over the last few years, our top results and selections are acclaimed in this form. The title of Best IIT JAM Coaching in Delhi is the best today!!

  3. #3
    Hosting Guru Akshay_M is on a distinguished road
    Join Date
    Apr 2019
    Location
    India
    Posts
    51
    Compile time: Once you have done writing your program(whatever the programming languages). You will do compile/build to find any error in your code. while doing compile or build, the compiler check for syntax errors. Some static values and object creation can also be taken place during compile time.

    run time: once the program loaded into the memory, based on your code the values may assign to variable or object creation can be done and also you will get your preferred output if your logic is right?.

  4. #4
    HWHT Addict samK is on a distinguished road
    Join Date
    May 2020
    Location
    India
    Posts
    42
    Main difference between RuntimeException and checked Exception is that It is mandatory to provide try-catch or try finally block to handle checked Exception and failure to do so will result in compile-time error, while in case of RuntimeException this is not mandatory.

+ Reply to Thread

Similar Threads

  1. Replies: 0
    Last Post: 06-13-2019, 07:21 AM
  2. difference between Checked Exception and Unchecked Exception?
    By designpluz in forum Programming Discussion
    Replies: 0
    Last Post: 04-18-2019, 05:16 AM
  3. difference between compile-time polymorphism and runtime polymorphism?
    By designpluz in forum Programming Discussion
    Replies: 0
    Last Post: 04-18-2019, 04:52 AM
  4. Does this happen during compile-time, runtime, or both?
    By webdesignsydney in forum Programming Discussion
    Replies: 0
    Last Post: 01-02-2019, 11:36 AM
  5. What is the difference between compile-time polymorphism and runtime polymorphism?
    By warrantyandinsurance in forum Programming Discussion
    Replies: 0
    Last Post: 12-27-2018, 03:12 AM

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts