Java

The curious case of byte as int in Java InputStreams

Published on

The curious case of byte as int in Java InputStreams
Why does InputStream.read() returns an int instead of a byte in Java? It’s a small detail that sometimes puzzles developers, especially those new to Java’s I/O API. In this article, we break down the reasoning behind this design choice and explain why it actually makes the Java API more robust and developer friendly.


5 Java coding beginner tips

Published on

In this article I am trying to touch on just a few pointers that I feel will help Java beginner programmers to smooth their code writing abilities and to become a proficient coder faster.