what is the Use of throws exception?

Answers were Sorted based on User's Feedback



what is the Use of throws exception?..

Answer / ravikiran(aptech mumbai)

throws is used to throw the exception to it's calling method

Is This Answer Correct ?    14 Yes 3 No

what is the Use of throws exception?..

Answer / niranjanravi

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

Post New Answer

More Core Java Interview Questions

What is flag in java?

1 Answers  


what do you understand by synchronization? : Java thread

1 Answers  


What is getkey () in java?

1 Answers  


How java is similar to c?

1 Answers  


What is hashtable and explain features of hashtable?

1 Answers  


What are the data types supported by java? What is autoboxing and unboxing?

1 Answers  


if am have 100 threads(for ex:T1,T2---T100) how we give priority to these threads and how the system excute these threads

2 Answers  


Explain the difference between an Interface and an Abstract class?

1 Answers   BirlaSoft,


What is multi level inheritance in java?

1 Answers  


How many decimal places is a double?

1 Answers  


What are the rules for variable declaration?

1 Answers  


Define how objects are stored in java?

1 Answers  


Categories