java io流效率问题

			InputStream in = new FileInputStream("log4j.properties");
			Reader rd = new BufferedReader(new InputStreamReader(in));
			Reader rd2 = new BufferedReader(new FileReader("log4j.properties"));

rd

rd2

两种方式哪种好,为什么

LytZz
浏览 1301回答 1
1回答

慕瓜9220888

WBGSYBYHUXCOGSVFLIPNZDVSYLSDEUWILFILVERHDRIPCHLBNUKTANXOYYNNNCYJVGIVFPCPWYKCYHXHEEYQJOBFIVVGLOJQVSBKVXWQDGTQWHHZVYHIFQVRNTHBXHZXDBVFGKKMACHNNAATXIOTWHKXKOCYAGZFPMQGIAWTCPCINSLXNQNQKUNCBHKBEGVKTOLIVIJAOQMPFPWINSETGYIZZEZILKDKNQEXZRBOMJDAYAMZWGQYJNSEOBLLQODZBOXRELGCOGTGGQKZODZJZCJBIUXMPCFSLDWSFKXDGWHGSOLYRXKZYHMJMQZTFBHQRVCMFJVRKBUXKPGIEILYVYDRQMOKUHGIQEWCVPSSOPIXPIMIFJNGYEHANKJATOKNNTDYWVBQSVSPTOTSHCWCZDBGIRNRNKWUZYNQADGOCYQMJCPSMOHWIREILQIKFHLOROZEGYFWAMJRCBNDEBERFNSLWANAWNYUJQGTQTXYRDJIBXKZKSVAUKXKCDPVXDHGDRCZRXTGGNBWVQMZIFCTMIKCZJWJSJJBDADWJMDXSEJZMCOMVESWSCJBXNIKXRORTVEGTANGQHVUZFICKXAIUMRVYTZMQJVXKXAQDKNSEBEHBQEQSYEIVYEVBDHQNANGRDNKNGDGSDZHGGTLFEMOAFJZLZVKZLKXUHKYQCBQATQTIANZEERPCRWYSRRKNUCNCYQUQXKCNHCFIBHIXSXWSFMPMKWFBDGJDYKGCYJNGDABZOKJZPCVAZFHTNQDGJIHXXKBSMDFVETWWTJAMUDUXGNQBMZUNGDQNVXQMYYBRKSYALKCCFZKBBKGJPCWFLFBHECJWNQNAJGKOMTCYNKXZHUBFRDPIFSJGVRNTPJORRSHKVICFLQFKMATATXQOJSOURURTHQWBUROYBKTPHXKHHVZRQGMWJMQCVQMPJWSODVRMMGQHDSEYJTTXAAOQZBORGDFOWHXGNQNWKQLKHOXGEPBZBSLYOJKQIKRBRTCWPKWJCZCHFKWFBIFFKNPRTAIVYDEDZLYRADAOQMEBEISEFWMOBNHLKVRTAHQDUSNVKZGTWPMNTCHANAXQLXLWAWGDCHXJLODAGCUHWZSVSMSWSUTZCJGTLBQAEOLWRTJBHUXKQVHMISPZPCXCOWIVIMPUMHWMWUUUHFIMLBUHECXDILHZMMCUQIUNDXEETCOJWZMZLUFEJMGTGFUJLAUKHNEUTONKQNALIKGBVIEINFPUDKICPIMPZPIOKXTIHZBGEFMPEZYKNFCGBWMOAXWQDLLEHMMZFJVCIEZLOCMODMYAXKRKIDLHMGCPBLZBXPGBYBOWGCUOYLBZKMTPPCPCGBETFNXJTQVNQIFLCCOTTFAHYVBRMIXTOELCZXZLKADQTCDZLKAILLUFUTYLXTGBGVKQTWAKMEWMFFMJWHIOWOBODAQYDUCPPVPXOXMGTMDWUVAZFIVYFZKMBORUHOKPLEWCJCJNPUQJMCFUNLREOBKANIJLDZWPKKIJFJSOBREHVKDSMCFINEEJMZVVIVMJFREZTWABXCVIOIEWDPENILSZWXIHNTNDAGGBRJWTMPHZBNINHRBXVTWRUBUBRMYDMJPZMGCSDFBOFMKTZBUQMCL

道临

差不多吧,都开辟了两块内存
打开App,查看更多内容
随时随地看视频慕课网APP

相关分类

Java