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 |
If set accepts only one argument then how can it compare two objects to avoid duplicates
solve this is my problem byte a=40,byte b=50 both add value is 90 this is with in range of byte... byte range is -128to 127.... why this pgm gives error like type mismatch.... package javapgms; public class byte1 { public static void main(String args[]) { byte a=40,b=50; byte c=a+b; System.out.println(c); } } note : dont use int k... a,b,c are in byte range... mind it..
How do you clear a list in java?
What is the difference between static and global variables and also define what are volatile variables?
0 Answers Flextronics, Hexaware,
What is adapter class?
does java support pointers?
what is the purpose of the wait(), notify(), and notifyall() methods? : Java thread
Explain when we should make an instance variable private.
Program to find greatest prime number in n numbers?
What are the drawbacks for singleton class?
What is a static class in java?
Which package is imported by default?