A.各种系统不区分\和/ B.Windows默认使用\做为文件分割符 C.unix只能使用/做为文件分割符 D.使用在需要使用文件分割符的地方使用System.getProperty("file.separator")可以保证应用程序的跨平台特性
假设有一个pr.properties文件,放在/client/properties目录下,在Solaris平台下执行下面代码段,会输出()
A.true;true B.false;true C.true;false D.false;false
A.在输出换行动作时,建议使用System.getProperty("line.separator")换行,这可以做到平台无关 B.在输出换行时最好直接使用"\n",调用System.getProperty("line.separator")会影响效率 C.输出换行时应该使用"\r\n","\n"只适用于Linux系统 D.全不对