When does Exception occurs?
Answers were Sorted based on User's Feedback
Answer / shakir khan
Exception is a condition that occur because of bad input
etc.
For example
FileNotFoundException will takesplace if the specified file
does not exist.
NullPointerException will be thrown if you try using a null
reference.
In most of the cases it is possible to recover from an
exception.
| Is This Answer Correct ? | 1 Yes | 0 No |
Answer / vikneswarank
any upnormal condication occur in try block .
| Is This Answer Correct ? | 0 Yes | 0 No |
How to create a custom exception?
How do you define a variable?
What is java life cycle?
class A{ m2(){ } } class B extends A{ m2(){ } } class c extends B{ m2(){ } } class my_class extends c{ m2(){ } pulic static void main(){ ...My_class a = new my_class(); super.super.super.m2(); is this is leagal if not find what is the legal procedure in order to call A's version of m2(); }
whats the life cycle of jsp
how session will be expired?
printstream class method println() is calling using System class and its static object out .how it is explain any one in detail with example ?
What is the relationship difference the canvas class and the graphics class?
How do you start a thread?
What is the difference between a method and a function in alice?
In Java, what types of classes perform inheritance?
Can we have more than one package statement in source file ?