Java Test 39

Java Test for Java NIO Don’t try to hack or to do something unusual, this is just some basic Java tests for Java NIO, to see what we learned until now. Please try to finish these tests without using an IDE. After choosing your options (radio buttons) please press Check button to see the result….

Java Test 38

Java Test for Data Streams Don’t try to hack or to do something unusual, this is just some basic Java tests for Data Streams, to see what we learned until now. Please try to finish these tests without using an IDE. After choosing your options (radio buttons) please press Check button to see the result….

Data Streams

Data Streams In this example, we will learn about the Data Stream: DataOutputStream and DataInputStream. These are byte stream. And we also study more about buffer streams. In the previous example, we use character streams. And the source is a text file. But a binary file is different. We cannot read the binary file directly…

Buffered Stream

Introduction to Buffered Stream FileInputStream, FileOutputStream, FileReader, FileWriter are all low-level streams that connect directly to the sources, and they will read or write each time a byte (8-bit data) or a char (16-bit data). There are high-level streams that take these low-level streams as a parameter, and process the I/O better than we do…