Hi guys....i'm new to Java and i've been reading Head First Java book, there is one part which i didn't get it is...
What's the difference between "throw" and "throws" clause ...and why do we use these two ???
Thanks for reading it....
The "throw" keyword causes an Exception object to be created. The throws keyword allows one to warn the compiler that a certain method might throw an Exception.