Answer Posted / shanthini
The keyword 'throws' should be used only with the methods while the keyword 'throw'is a clause...
Throws is actually a declaration of any methods and Throw is used to handle the exceptions...
| Is This Answer Correct ? | 3 Yes | 0 No |
Post New Answer View All Answers
How do you check if a string contains only numeric digits?
Does treeset allow null in java?
What are synchronized methods and synchronized statements in java programming?
Explain what do you mean by functional overloading in java?
How to Sort Strings which are given in List and display in ascending order without using java api.
Explain when we should make an instance variable private.
What does .equals do in java?
How many threads does a core java have?
Can you make a constructor final in Java?
Can we force garbage collector to run ?
What is meant by JVM? Is JVM platform independent or not?
What is the difference between C++ and Java and your preferences?
Why do I need to declare the type of a variable in java?
Give the difference between the println method and sqrt method?
Can we create a class inside a class in java?