can any one explain the output of this program...
import java.io.*;
public class Question12 {
public static void main(
String[] args) throws IOException{
RandomAccessFile raf = new RandomAccessFile("test.dat","rw");
raf.writeInt(0x01);
raf.writeShort(0x23);
raf.writeByte(0x45);
raf.seek(3);
short a1 = raf.readShort();
short a2 = raf.readShort();
System.out.println("0x"+Integer.toHexString(a1)+", 0x"+Integer.toHexString(a2));
}
}
o/p:
0x100 0x2345