人気の面接質問と回答・オンラインテスト
面接対策、オンラインテスト、チュートリアル、ライブ練習のための学習プラットフォーム

集中型学習パス、模擬テスト、面接向けコンテンツでスキルを伸ばしましょう。

WithoutBook は、分野別の面接質問、オンライン練習テスト、チュートリアル、比較ガイドをひとつのレスポンシブな学習空間にまとめています。

面接準備

模擬試験

ホームページに設定

このページをブックマーク

メールアドレスを登録

Without Book 質問する

質問. Java outOfMemory exception in string.split

- Getting Java outOfMemory exception in string.split while reading each line for 60 MB file. Please suggest what need to be done?

投稿日 Jul 12, 2014 投稿者 Raman
回答. You should try first is reduce the file to small enough that it works. That will allow you to appraise just how large a problem you have.

Just a general Java note: don't write
String s1 = new String(tokens[0]);
String s2 = new String(tokens[1]);

Just need to write:
String s1 = tokens[0];
String s2 = tokens[1];

or even just use tokens[0] directly instead of s1, since it's about as clear.
投稿日 Jul 12, 2014 投稿者 Arindam

回答を入力

名前
メールアドレス
回答
セキュリティチェック
続行するにはこれを解いてください: 1 + 3 = ?
著作権 © 2026、WithoutBook。