what is the Use of throws exception?
Answers were Sorted based on User's Feedback
Answer / ravikiran(aptech mumbai)
throws is used to throw the exception to it's calling method
| Is This Answer Correct ? | 14 Yes | 3 No |
it is used to throw the list of exceptions that a method
has to throw.
Syntax:
returntype methodname(list of args)throws
exception1,exception2{
body
}
| Is This Answer Correct ? | 15 Yes | 6 No |
What is flag in java?
what do you understand by synchronization? : Java thread
What is getkey () in java?
How java is similar to c?
What is hashtable and explain features of hashtable?
What are the data types supported by java? What is autoboxing and unboxing?
if am have 100 threads(for ex:T1,T2---T100) how we give priority to these threads and how the system excute these threads
Explain the difference between an Interface and an Abstract class?
What is multi level inheritance in java?
How many decimal places is a double?
What are the rules for variable declaration?
Define how objects are stored in java?