Differentiate between run time error and syntax error.



Differentiate between run time error and syntax error...

Answer / Amit Kumar Sagar

A runtime error, also known as a dynamic error, occurs during the execution of a program. Examples include NullPointerException, ArrayIndexOutOfBoundsException, and DivisionByZeroError. A syntax error, on the other hand, is a mistake in the program's code that prevents it from being executed correctly.

Is This Answer Correct ?    0 Yes 0 No

Post New Answer

More Core Java Interview Questions

Explain class A{} class B{} class C{} all the three classes are saved in a single file name, what the name should i provide to the file ,in what file name should i run the program? Ple Explain

9 Answers   DNS, Infosys, TCS,


Difference between vector and arraylist.

1 Answers  


Differentiate between array list and vector in java.

1 Answers  


What is append in java?

1 Answers  


33. try { 34. // some code here 35. } catch (NullPointerException e1) { 36. System.out.print(”a”); 37. } catch (RuntimeException e2) { 38. System.out.print(”b”); 39. } finally { 40. System.out.print(”c”); 41. } What is the result if a NullPointerException occurs on line 34? 1 c 2 a 3 ab 4 ac

5 Answers  


What is Co-Variant return type in method overriding?

1 Answers   RBS,


What is regex java?

1 Answers  


Does a class inherit the constructor of its super class?if it does, how can you hide that constructor? if it doesnot how can you call it from the sub class?

2 Answers  


how to print output with out using sop statements

5 Answers   UHG,


can you use the two main method in same class?how?

4 Answers   DELL, Geosoft, SparkTG,


How do you sort in ascending order in java?

1 Answers  


What is the unit of plancks constant?

1 Answers  


Categories