Friday, 18 November 2011

Java interview questions: - 16 most asked important questions on Input and Output (I/O).

Following are the sets of 16 most asked  Java interview questions by the interviewer during the interview.
  • What is the difference between the Reader/Writer class hierarchy and the InputStream/OutputStream class hierarchy?
  • What is the purpose of the File class?
  • What an I/O filter?
  • What is the difference between the File and RandomAccessFile classes?
  • What is Serialization and deserialization?
  • What is the difference between Serializalble and Externalizable interface?
  • Which methods of Serializable interface should I implement?
  • What is the purpose of the Runtime class?
  • What is the purpose of the System class?
  • What is the Properties class?
  • How many methods in the Externalizable interface?
  • What class allows you to read objects directly from a stream?
  • What happens to the static fields of a class during serialization?
  • How do I connect a Reader to an InputStream?
  • How many types of IOStream are present?
  • What is the use of non blocking IO?
Also see the following interesting video on Inheritance between beans and Spring: -

Know more on  Java interview questions
Get more on Java interview questions from author’s blog

1 comment: