What is the difference between throw and throws?
Answer Posted / ravikiran
throw will declare an exception
throws will throw the exception to the calling method
Is This Answer Correct ? | 16 Yes | 8 No |
Post New Answer View All Answers
If you are given the name of the function at run time how will you invoke the function?
What is meant by nested loop?
What is the use of :: in java?
Is object a data type in java?
What is a wrapper method?
Have you ever used hashtable and dictionary?
What is nan in java?
What is an infinite loop? How infinite loop is declared?
What’s a deadlock?
Is string a datatype?
what is the role of xml in core java?? and how we can use it?? can somebody give a sample program with explanation and from where i can read more about xml?????
What is methodological framework?
What best practices should you follow while writing multithreaded code in java?
How many times finalize method will be invoked? Who invokes finalize() method in java?
What is float in java?