以下の値をeclipse.iniを変更し(増やす)
-Xms1024m
-Xmx1024m
以下のオプションをeclipse.iniに追加したところ起動が爆速になった!ぜひを試しを!
-server
-Xverify:none
-XX:PermSize=256m
-XX:MaxPermSize=256m
-XX:+UseParallelGC
使用マシンLenovo W540
java version "1.8.0_60"
Java(TM) SE Runtime Environment (build 1.8.0_60-b27)
Java HotSpot(TM) 64-Bit Server VM (build 25.60-b23, mixed mode)
以上
Showing posts with label Java. Show all posts
Showing posts with label Java. Show all posts
Wednesday, September 30, 2015
Friday, September 23, 2011
Java - メモ
Java - 正しい例外処理メモ
■起こらない例外の処理方法
例外処理しないのではなく、ErrorまたはRuntimeExceptionをthrowするとさらに安全
悪い例:
良い例:
■ArrayListはListインタフェースを実装したクラス(Implemented Class)
■Iterator
参考1
■正規表現
参考1
■起こらない例外の処理方法
例外処理しないのではなく、ErrorまたはRuntimeExceptionをthrowするとさらに安全
悪い例:
try{
url = new URL("http://www.google.com");
}catch(MalformedURLException){
// do nothing
}
良い例:
try{
url = new URL("http://www.google.com");
}catch(MalformedURLException){
throw new RuntimeException(e.toString());
}
■ArrayListはListインタフェースを実装したクラス(Implemented Class)
■Iterator
参考1
■正規表現
参考1
Subscribe to:
Posts (Atom)