What classes of exceptions, thrown by a throw statement?
Answers were Sorted based on User's Feedback
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 |
What is jvm? Why is java called the platform independent programming language?
Give an example of call be reference significance.
Can we override compareto method?
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;
In which language java is written?
How to do validation of the fields in any project ?
What are actual parameters?
What is difference between string and new string?
How do you sort words in java?
In which order the iterator iterates over collection?
Explain about public and private access specifiers?
What does the three dot emoji mean?