What is the difference between throw and throws?
Answer Posted / surender kannuri
throws clause is used to whenever programmer doesn't want to
handle exception.throws it out of method.
throw is used whenever programmer wants to handle exception
explicitly by using catch blocks.
| Is This Answer Correct ? | 0 Yes | 0 No |
Post New Answer View All Answers
What is the static method?
Difference between arraylist and vector.
Why java is a platform independent? Explain
How do you initialize an arraylist in java?
Is empty in java?
What is anti pattern in cyber security?
Which methods cannot be overridden in java?
We are seeing so many videos/audios as many web sited. But question is these videos or audios are stored in Databases ( Oracle, Mysql, Sybase,... ) or stored any file directory from there they will give the link for that? Pls explain and give sample code to achieve this one? Thanks, Seenu.
What is double in java?
Which method must be implemented by all threads?
Can you inherit a constructor java?
Can a source file contain more than one class declaration?
What is the common usage of serialization?
Can a constructor have different name than a class name in java?
Which container method is used to cause a container to be laid out and redisplayed in java programming?