what is difference between throw and throws in exception?
Answer Posted / visweswara rao
throw:- System generated exceptions are automatically
thrown by the Java run-time system.To manualy throw the
exception,we use the keyword throw
throws:- Any exception that is thrown out of a method must
be specified as such by a throws clause
| Is This Answer Correct ? | 0 Yes | 0 No |
Post New Answer View All Answers
Howto get an object that will perform date & time calculations then format it for output in some different locales with different date style.can ne1 tel me the answer of this question.pls
What are the basic concepts of OOPS in java?
Which non-unicode letter characters may be used as the first character of an identifier?
How are this() and super() used with constructors in java programming?
Is array an object in java?
What is empty string literal in java?
Can a class be a super class and a sub-class at the same time? Give example.
What are peerless components in java programming?
What is string literal in java?
What is the difference between Java Program Constructor and Java Program Method, What is the purpose of Java Program constructor Please Explain it Breafily?
Write a method that will remove given character from the string?
Is passing by reference faster?
What is logical variable?
What is the difference between an argument and a parameter?
When to use runnable interface vs thread class in java?