what is difference between throw and throws in exception?
Answer Posted / prabakar
throw:
raised the exception which are occured as a method body.
Throws:
it's the communication bridge between calling function and called function.
| Is This Answer Correct ? | 1 Yes | 0 No |
Post New Answer View All Answers
What is the difference between heap and stack memory?
What does this mean java?
What is an infinite loop in java? Explain with an example.
Can a final variable be null?
What is the size of string?
What is a double?
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 is the use of System class?
I want to print “hello” even before main is executed. How will you acheive that?
What is java virtual machine and how it is considered in context of java’s platform independent feature?
Can we convert list to set in java?
Is main a function?
hr interview how many minutes asking question
What is gc()?
Why scanner is used in java?