what difference between throw and throws in exception
handling.

Answer Posted / archana

throws is to handle exception by the system itself
whereas throw used by the user to handled the exception

Is This Answer Correct ?    5 Yes 0 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

What is java jit compilers?

779


What is the meaning of immutable regarding string?

766


Explain a few methods of overloading best practices in java?

770


How can you generate random numbers in java?

819


Does java return by reference?

777


When will you define a method as static?

850


What are examples of modifiers?

743


How do you write a conditional statement?

729


What is module in project?

758


Is an empty arraylist null?

823


Can an interface extend another interface?

840


What is a bufferedreader?

774


How we can make copy of a java object?

891


What is the use of conditional statement?

775


What are keywords and reserved words in java?

812