What is the difference between throw and throws?
Answer Posted / sushma
'throw' exception is thrown manually and 'throws' exception
is thrown predefindly.
| Is This Answer Correct ? | 23 Yes | 9 No |
Post New Answer View All Answers
Which browsers work with java?
Explain OOPs concept.
Can you add null to a list java?
What does yield method of the thread class do?
What are untrusted applets?
How many bits is a 64 bit byte?
Compare java and python.
How do you add an element to a set in java?
how a programmer confirms that the data submitted has been succesfully inserted into the database(either oracle or my sql).. How a programmer confirm if there is any problem with the program he wrote for insertion... ANS:--- >executeupdate method is having boolean return type, if anything goes wrong in data insertion or data updation, it would return false. otherwise, if it successfully inserts data into the database, it would return true NOW HOW TO I CHECK IN MY DURING EXECUTION WHETHER IT RETURNS TRUE OR FALSE... WELL IT WILL DISPLAY ANY MESSAGE OR NOT
Explain illegalmonitorstateexception and when it will be thrown?
Difference between ‘>>’ and ‘>>>’ operators in java?
What is variable in java?
Explain the difference between the public, private, final, protected, and default modifiers?
How do I convert a numeric ip address like 192.18.97.39 into a hostname like java.sun.com?
What is finally block?