+ 1
Can anyone explain about throw and throws keyword in java?
2 Respuestas
+ 2
https://www.tutorialspoint.com/difference-between-throw-and-throws-in-java#:~:text=Throw%20is%20a%20keyword%20which,function%20while%20executing%20the%20code.
It maybe helpful for you😊
+ 2
throw to throw error
throws to indicate that method may throw an error..when you call it, you must use try catch block