Q&A
Q1: | Why do some of the byte stream methods in this hour use integers as arguments? Shouldn't they be using byte arguments? |
A1: | There's a different between the bytes in a stream and the bytes represented by the byte class. A byte in Java has a value ranging from–128 to 127, while a byte in a stream has a value from 0 to 255. You often have to use int when working with bytes for this reason—it can hold the values 128 to 255, while byte cannot. |
Q2: | Can you suggest any good books to expand into basic Java/database interactions with either Oracle or Microsoft SQL? Also, would this be done with JDBC? |
A2: | Java software can access relational databases with either Java Database Connectivity (JDBC) or the JDBC-ODBC Bridge. The same techniques are required ... |
Get SAMS Teach Yourself Programming with Java™ in 24 Hours, FOURTH EDITION now with the O’Reilly learning platform.
O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.