Explain importance of throws keyword in java?
Answer / Sachin Varshney
The 'throws' keyword is important in Java as it allows a method to indicate that it may throw an exception. This enables the calling method to decide whether it can handle the exception or needs to pass it on to another method.
| Is This Answer Correct ? | 0 Yes | 0 No |
Can a method inside a interface be declared as final?
Why do we need array in java?
Is set thread safe java?
What is the static import?
What does java se mean?
Is there memory leaks in java?
Is arraylist an object in java?
they asked class A{} class B{} class c{} all the three class saved as a single file,there is no main method in the file and anothe class M.java class m { psvm(String args[]) { // here the parent class can access } }
2 Answers DNS, IPSR Solutions,
What are the Class Libraries ?
Hai all I want to print given array in reverse order Ex: int a[]={1,2,3,4,5};display this array in reverse order.
Explain about serializable interface in java?
What is JVM and is it platform independent?