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
Is int a class in java?
Define a java class.
What is the original name of java?
What does arrays sort do in java?
What is a treeset in java?
Why java is secure? Explain.
Is it possible to instantiate the abstract class?
Which method you will use to create a new file to store some log data. Each time a new log entry is necessary, write string to the file in java ?
What is java dot?
When do we use synchronized methods in java?
What is the use of beaninfo?
What is difference between local variable and global variable?
What is mvc in java?
Can we use both this () and super () in a constructor?
What is synchronization and why is it important in java programming?