正体不明のオブジェクトのクラスを調べるには? J2SEのコアパッケージでも頻繁に利用されていますが,コレクションクラスを利用していると,格納されているオブジェクトがわからなくて戸惑うことがあります。コレクションはすべてObjectとして保持する ...
前回(第3回 静的モデル:クラスにおけるUMLとJavaのマッピング(1))は、UMLの“クラス”とJavaの“クラス”についてそれぞれを構成する部品をメタモデルという形で明確化しました。今回は、このメタモデルを比較することによって、UMLとJavaのマッピング ...
Object-oriented systems are usually partitioned into layers of related responsibilities and only dependencies in one direction are allowed, from higher layers (more specific, less reusable) to lower ...
インスタンスA(最初の new Object())は c によって参照されているため GCの対象ではない。 インスタンスB(2つ目の new Object())は、b が null にされ、誰からも参照されていないため、ガベージコレクションの対象。 どのインスタンスからでもアクセス可能 非 ...
Javaプログラミング言語習得において、新人プログラマーの最初の障害は「オブジェクト指向の壁」です。本書は、Javaのソフトウェア開発を中心に事業を発展させてきたアクロクエストテクノロジー社の新人教育セミナーを加筆・書籍化したもので、大卒の ...
Most Java developers who come from a C/C++ background have probably at one time wished for a Java equivalent of sizeof(). Although Java lacks a true sizeof() equivalent, the Instrumentation interface ...
Multithreaded programming is challenging but unavoidable, which is why you need the best tools and techniques for doing it safely. In this article Theodore S. Norvell introduces the conceptual ...