One of the places java tries to find your bytecode file is your current directory. So, for example, if your bytecode file is in /home/jdoe/java, you should change your current dire
Read tutorial ↗Internationalization involves many aspects of application development. Practically speaking, the primary goal behind all of these facets of development is to engineer a user interf
Read tutorial ↗There are a number of features in Java that have no equivalent in C++. Perhaps the three most important are multithreading, packages, and interfaces, but there are several others t
Read tutorial ↗There are a number of C++ features that Java does not support. In some cases, a specific C++ feature simply didn't relate to the Java environment. In other cases, the designers of
Read tutorial ↗A utility is used to generate a JAR file. Its syntax is shown here
Read tutorial ↗One of the novel uses of buffering is the implementation of pushback. Pushback is used on an input stream to allow a byte to be read and then returned (that is, "pushed back") to t
Read tutorial ↗Buffering I/O is a very common performance optimization. Java's BufferedInputStream class allows you to "wrap" any InputStream into a buffered stream and achieve this performance i
Read tutorial ↗ByteArrayOutputStream is an implementation of an output stream that uses a byte array as the destination. ByteArrayOutputStream has two constructors, shown here:
Read tutorial ↗ByteArrayInputStream is an implementation of an input stream that uses a byte array as the source. This class has two constructors, each of which requires a byte array to provide t
Read tutorial ↗FileOutputStream creates an OutputStream that you can use to write bytes to a file. Its most commonly used constructors are shown here:
Read tutorial ↗The FileInputStream class creates an InputStream that you can use to read bytes from
Read tutorial ↗You will often want to limit the number of files returned by the list() method to include only those files that match a certain filename pattern, or filter. To do this, you must us
Read tutorial ↗