publicclasspr27171{publicstaticvoidmain(String[]args)throwsThrowable{// Isolated low surrogate.charx=56478;// 0xdc9eStringxs=newString(newchar[]{x});// Note that we fix a result for our implementation; but// the JDK does something else.System.out.println(xs.getBytes("UTF-8").length);// isolated high surrogate -- at end of input streamchary=0xdaee;Stringys=newString(newchar[]{y});// Note that we fix a result for our implementation; but// the JDK does something else.System.out.println(ys.getBytes("UTF-8").length);}}