IO is very important from Java interview point of view. You should have a good knowledge of old Java IO, NIO, and NIO2 along with some operating system and disk IO fundamentals. Here are some frequently asked questions form Java IO.
List questions:
- In my Java program, I have three sockets? How many threads I will need to handle that?
- How do you create ByteBuffer in Java?
- How do you write and read from ByteBuffer in Java?
- Is Java BIG endian or LITTLE endian?
- What is the byte order of ByteBuffer?
- The difference between direct buffer and non-direct buffer in Java?
- What is the memory mapped buffer in Java?
- What is TCP NO DELAY socket option?
- What is the difference between TCP and UDP protocol?
- The difference between ByteBuffer and StringBuffer in Java?
- What is a stream and what are the types of Streams and classes of the Streams?
- What is the difference between Reader/Writer and InputStream/Output Stream?
- What is an I/O filter?
-
In my Java program, I have three sockets? How many threads I will need to handle that? ⤴
-
How do you create ByteBuffer in Java? ⤴
-
How do you write and read from ByteBuffer in Java? ⤴
-
Is Java BIG endian or LITTLE endian? ⤴
-
What is the byte order of ByteBuffer? ⤴
-
The difference between direct buffer and non-direct buffer in Java? ⤴
-
What is the memory mapped buffer in Java? ⤴