Posts

Showing posts with the label runtime errors

Error in java with example

Exceptions or errors are most commonly facing problems in java language or any technology. In real time software, while designing the system or developing the code also commits several errors. These error are called as 'bugs' and the process of removing them is called 'debugging' . Errors in Java program:        There are basically 3 types of errors in Java Program:                       1. Compile-time errors                       2. Runtime errors                       3. Logical errors Compile-time Errors:        These are syntactical error found in the code, due to which a program fails to compile. For example, forgetting a semicolon declaration at the end of the statement in Java program, or writing a program without proper syntax which result in compile-time error. 1 2 3 4 5 6 7 8 9 10 package com . javatbrains . exceptions ; public class CompileError { public static void main ( String [] args ) { System . o