Java Packages Overview
2020-10 Select from among the following, classes which are stored in the java.sql package. Connection Writer Reader FileWriter ResultSet Answer: (a) Connection and (e) ResultSet The java.sql package is the foundation for Java Database Connectivity (JDBC) and contains classes and interfaces for interacting with databases. (a) Connection is an interface in the java.sql package used to establish a connection with a database. (e) ResultSet is an interface in the java.sql package used to hold data retrieved from a database after executing an SQL query. (b) Writer, (c) Reader, and (d) FileWriter are part of the java.io package, which is used for input and output operations, specifically character streams for the first two and file writing for the last two. They are not related to database connectivity. Java Packages — Quick Reference A compact, beginner-friendly list o...