Throw Throws & Thrown
So this happened during an interview...
Me: "Can you describe me the difference between the throw & throws keywords"
He: "When a method is expected to throw more than one exception, you got to use the throws keyword else its OK to use the throw."
0 Comments:
Post a Comment
Home