Day 1 of #100DaysOfJavaBackend
Faizan Firdousi
Posted on November 5, 2024
I learned about:
๐๐
๐ฐ๐ฒ๐ฝ๐๐ถ๐ผ๐ป ๐๐ฎ๐ป๐ฑ๐น๐ถ๐ป๐ด:
-Types of exceptions: checked and unchecked.
-How try-catch works, along with Exception classes and their hierarchy (see image).
-How to create your own exceptions using throw and how to use throws in a method.
๐๐๐๐:
I gained an understanding of how JDBC connects Java to databases and the code required to make this happen. I learned to:
-Connect to a database using a URL and password as input to the Connection interface, and run queries while storing the results in an instance of ResultSet.
-Iterate through the ResultSet object using a while loop, extracting data for each row with methods like getInt() and getString().
Today,
-Handle SQL exceptions in a try-catch block, which may arise from syntax errors in Java or in SQL queries.
Posted on November 5, 2024
Join Our Newsletter. No Spam, Only the good stuff.
Sign up to receive the latest update from our blog.