throws keyword in Java
The keyword throws indicate that the method merely has the potential to throw that exception. ``` public String getDataFromDatabase() throws SQLException { throw new UnsupportedOperationException(); } ```
The keyword throws indicate that the method merely has the potential to throw that exception. ``` public String getDataFromDatabase() throws SQLException { throw new UnsupportedOperationException(); } ```