What classes of exceptions, thrown by a throw statement?

Answers were Sorted based on User's Feedback



What classes of exceptions, thrown by a throw statement?..

Answer / ravikiran

checked exceptions

Is This Answer Correct ?    2 Yes 0 No

What classes of exceptions, thrown by a throw statement?..

Answer / niranjanravi

Syntax for throw is:
throw throwableinstance;
Here the throwableinstance must be an object of type
Throwable or sub-class of Throwable.Simple types such as
int or char as well as non-Throwable types such as String
or object can't be assigned to throw.

Is This Answer Correct ?    1 Yes 0 No

Post New Answer

More Core Java Interview Questions

What is jvm? Why is java called the platform independent programming language?

1 Answers  


Give an example of call be reference significance.

1 Answers   Agilent,


Can we override compareto method?

1 Answers  


10. class Nav{ 11. public enum Direction { NORTH, SOUTH, EAST, WEST } 12. } 13. public class Sprite{ 14. // insert code here 15. } Which code, inserted at line 14, allows the Sprite class to compile? a)Direction d = NORTH; b)Nav.Direction d = NORTH; c)Direction d = Direction.NORTH; d)Nav.Direction d = Nav.Direction.NORTH;

2 Answers  


In which language java is written?

1 Answers  


How to do validation of the fields in any project ?

2 Answers  


What are actual parameters?

1 Answers  


What is difference between string and new string?

1 Answers  


How do you sort words in java?

1 Answers  


In which order the iterator iterates over collection?

1 Answers  


Explain about public and private access specifiers?

1 Answers  


What does the three dot emoji mean?

1 Answers  


Categories