This week's book giveaway is in the OO, Patterns, UML and Refactoring forum. We're giving away four copies of Refactoring for Software Design Smells: Managing Technical Debt and have Girish Suryanarayana, Ganesh Samarthyam & Tushar Sharma on-line! See this thread for details.
FileOutputStream o = new FileOutputStream String s = "test" for(int i =0 i<s.length();i++)> outStream.write(s.charAt(i)); //4bytes are written outStream.close() It is given in mock exam that the above outStream obj writes 4 bytes ? how is this ? I think it is 8 bytes becoz u have a characters which are written