this is question from jawroski which says char = 1 byte how is it possible ?
here is the full code from jawroski quiz i am adding
How many bytes does the fallowing program write to temp.txt?
import java.io.*;
public class TestIOApp{
public static void main(
String args{})throws IOException{
FileOutputStream outStream = new FileOutputStream("text.txt");
String s = "text";
for(int i =0 ;i<s.length();++i)>
outStream.write(s.charat(i));
outStream.close();
}
}