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 |
Can we access a database using applets?
can any body tell me? does advance java and j2ee both are same.
What is the difference between static (class) method and instance method?
Can you achieve runtime polymorphism by data members?
If a variable is declared as private, where may the variable be accessed?
when i write string s1="java"; in one program(application) and string s2="java"; in another application on the same jvm will both objects s2,s2 will refer to same memory location where "java" is stored in string pool.
Tell me are there implementations for sorting and searching in the java libarary?
How many types of design patterns are there?
Can we have a try block without catch block?
how to create constants in java?
what do you meant by Platform-Independent?
How does static modifier work?