Question: Write a few lines of text to a new PrintWriter(output1.txt, UTF-8) and the same text to a new PrintWriter(output2.txt, UTF-16). How do the output files
Write a few lines of text to a new PrintWriter("output1.txt", "UTF-8") and the same text to a new PrintWriter("output2.txt", "UTF-16"). How do the output files differ?
Step by Step Solution
3.34 Rating (148 Votes )
There are 3 Steps involved in it
The two output files will contain the same text but the way the text data is represented will differ due to the different character encoding schemes u... View full answer
Get step-by-step solutions from verified subject matter experts
