what difference between throw and throws in exception
handling.
Answer Posted / archana
throws is to handle exception by the system itself
whereas throw used by the user to handled the exception
| Is This Answer Correct ? | 5 Yes | 0 No |
Post New Answer View All Answers
How many JVMs can run on a single machine and what is the meaning of Just-In-Time (JIT) compiler?
when you will synchronize a piece of your code? : Java thread
What is the impact of declaring a method as final?
How to invoke external process in java.
In case of inheritance what is the execution order of constructor and destructor?
Explain about interthread communication and how it takes place in java?
Can a class with private constructor be extended?
what do you mean by classloader in java?
What is constructor in java ?
Make a data structure and implement an algorithm to print all the files in a directory. (The root directory can have sub-directories too.)
Where are local variables stored?
Can an interface extend another interface?
How the interruptible method gets implemented?
Can you use this() and super() both in a constructor?
EDS (Electronic Data Systems India Pvt Ltd) at Chennai on 16-12-2006.