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
What is boolean logic?
When we serialize an object does the serialization mechanism saves its references too?
Explain aggregation in java?
Is alive method in java?
If a class is declared without any access modifiers, where can the class be accessed?
what do you mean by classloader?
What are the advantages of encapsulation in java?
Explain covariant method overriding in java.
What is used of static keyword in java?
Why is java called the platform independent programming language?
How many types of java are there?
What is command line argument in java?
Explain how hashmap works?
What is the difference between exception and error in java?
Is object a data type in java?