what is difference between throw and throws in exception?
Answer Posted / ravikumar
Throws - what ever the exception you are declaring are
taken care by JVM. If it is a user defined exception in throws
block, JVM doesn't know when to throw that exception . For
this purpose we use Throw for a certain conditions/logic to
throw these user defined exceptions
| Is This Answer Correct ? | 0 Yes | 1 No |
Post New Answer View All Answers
Can there be an abstract method without an abstract class?
What are latest features introduced with java 8?
What is arraylist e?
What is jpa specification?
What are the steps that are followed when two computers connect through tcp?
What is bufferedwriter?
How hashmap works in java?
What data type is string java?
Can we define static methods inside interface?
Can arraylist contain null values?
What are advantages and disadvantages of OOPs?
Where can I find jdk in my computer?
Hi all, I am dng a mini project on FileSplitter application which splits the GBs of logfile into Smaller chunks(mbs) depending on the split size." How to handle GBs file? I am getting OutOfMemoryException, when I input such GB sized file. Thx
What is a parameter in simple terms?
Discuss about garbage collector in Java.