What is an Exception ?
Answers were Sorted based on User's Feedback
Answer / ramanareddy333
An Exception is logical error.An exception is an event,
which occurs during the execution of a program, that
disrupts the normal flow of the program's instructions.
when an exception is occur the program is teriminated
suddenly. using Try , Catch,finally block to avoid the
exception
| Is This Answer Correct ? | 23 Yes | 1 No |
Answer / gopalramana
abnormal conditions arise in a program called Exception
| Is This Answer Correct ? | 6 Yes | 1 No |
An Exception is a mild error conditon that your program
encounters.An Exception can be caught and recoverable.
| Is This Answer Correct ? | 5 Yes | 2 No |
Answer / jyothi
An Exeception is an object that contain the information
about what went wrong
| Is This Answer Correct ? | 4 Yes | 1 No |
Answer / ravikiran(aptech mumbai)
exception is an abnormal condition occurs during runtime.
| Is This Answer Correct ? | 4 Yes | 1 No |
Answer / sonam
Exception is just like a condition which is caused by run
time in program.
| Is This Answer Correct ? | 2 Yes | 0 No |
An exception is any error condition or unexpected behavior
encountered by an executing progarm othre than logic or
syntex errors.
The error conditions might include conditios such as
division by zero, access to an array to an array outside of
its bounds,etc.
To handle exception we use three statements :
1. try 2. catch 3.finally
| Is This Answer Correct ? | 7 Yes | 6 No |
Answer / priyanka verma
exception are run time error which a programmer usually do not except, they occur accidently which may result in abnormal termination of the program.
| Is This Answer Correct ? | 0 Yes | 0 No |
Answer / luckystarjava
Exception is an event occur-ed during the execution of the
program because of the abnormal behavior of the code.
| Is This Answer Correct ? | 0 Yes | 0 No |
Answer / nashiinformaticssolutions
An is considered an unexpected event that can disrupt the program's normal flow. These events can be fixed through the process of Exception Handling.
| Is This Answer Correct ? | 0 Yes | 0 No |
hr interview how many minutes asking question
There are two classes named classa and classb. Both classes are in the same package. Can a private member of classa can be accessed by an object of classb?
What is the difference between static (class) method and instance method?
Can a class be final?
Difference between an argument and a parameter?
10 Answers Accounting, HCL, IBM, Quinnox,
If a method is declared as protected, where may the method be accessed?
What is the string function?
what are the methods of an object class?
Explain the importance of throwable class and its methods?
can we create instance for interface in java?
What is ternary operator? Give an example.
What is difference between abstract class & final class