An ObjectInputStream deserializes primitive data and objects previously written using an ObjectOutputStream. C:\Program Files\Java\jre6\docs\api\index.html
A data input stream lets an application read primitive Java data types from an underlying input stream in a machine-independent way. An application uses a data output stream to write data that can later be read by a data input stream. DataInputStream is not necessarily safe for multithreaded access. Thread safety is optional and is the responsibility of users of methods in this class. C:\Program Files\Java\jre6\docs\api\index.html Keith ________________________________ From: sriramulu chittajallu <[email protected]> To: [email protected] Sent: Thursday, January 29, 2009 8:52:25 AM Subject: [java programming] Difference between streams like DataInputStream,ObjectOutputStream,etc hi friends, When i am dealing with Sockets, very often i face the problem that which stream is to be used in my program since we have different types of streams like DataInputStream,ObjectInputStream, etc. So i request anybody to explain the difference between these streams and which stream is to be used in which situation i.e explain the applications of each stream. I hope i get reply soon. thank u advanced --~--~---------~--~----~------------~-------~--~----~ To post to this group, send email to [email protected] To unsubscribe from this group, send email to [email protected] For more options, visit this group at http://groups.google.com/group/javaprogrammingwithpassion?hl=en -~----------~----~----~----~------~----~------~--~---
