What is the difference between throw and throws?

Answer Posted / sushma

'throw' exception is thrown manually and 'throws' exception
is thrown predefindly.

Is This Answer Correct ?    23 Yes 9 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

Differece between class and generic class?

567


Explain covariant method overriding in java.

544


What are methods in java?

541


What is the r character?

589


Which package is used for pattern matching with regular expressions?

646






Can a class extend more than one class?

615


What is string buffer?

506


What is the relationship difference the canvas class and the graphics class?

561


What does java se mean?

591


Can a abstract class be declared final?

569


What is keyset in java?

657


What is JFC?

713


What's the purpose of static methods and static variables?

599


What is a class instance variable?

624


Explain the advantages of packages in java?

517