try { InputStream inputStream = new FileInputStream("file.txt"); ObjectInputStream objectInputStream = new ObjectInputStream(inputStream); short value = objectInputStream.readShort(); System.out.println("Read short value: " + value); objectInputStream.close(); } catch(IOException ex) { ex.printStackTrace(); }In this example, we're opening a file input stream from a file called "file.txt", and then creating an object input stream from it. We use the readShort() method to read a short value from the input stream, and then print it to the console. The `java.io.ObjectInputStream` class is part of the Java standard library, which is included in the `java.base` package.