ログインして、InfoQのすべての体験をアンロックしましょう!お気に入りの著者やトピックの最新情報を入手し、コンテンツと交流し、限定リソースをダウンロードできます。 クラウドコンピューティングの登場以降、ソフトウェア業界は大きな変革の中に ...
ご存じのとおり、クラスには属性を表す変数と、操作を表すメソッドを定義します。このクラスに用意した変数やメソッドを総称してメンバと呼びます(図1)。 図1.メンバ メンバ変数は、そのクラスが持つべき属性を表現するために使用します。メンバ ...
Nested classes are classes that are declared as members of other classes or scopes. Nesting classes is one way to better organize your code. For example, say you have a non-nested class (also known as ...
本連載は、サン・マイクロシステムズ認定のJava資格Sun Certified Programmer for Java 2 Platform 5.0(SJC-P5.0)に対応しています。最新の出題傾向に基づいて、ソースコードの問題を中心に毎回模擬問題を1問出題します。ソースコードに慣れながら、SJC-P合格を目指して ...
This article discusses how Java static compilation can address the issues of high cold start and runtime memory usage, enabling the development of more lightweight microservices applications. Java ...
同一クラスの全てのインスタンスで共有される『staticフィールド』や『staticメソッド』。 これについては、『メモリ領域を共有する』という説明がされています。 メモリ領域を共有するなら、各インスタンスで持つよりメモリの節約になりそうだし、 public ...
There was a time when the use of the word ain’t was widely considered unacceptable, at least in polite society. Indeed, at that time (and perhaps still today), many people did (and do) not consider ...
Static initialization blocks are executed when the class is loaded, and you can initialize static variables in those blocks. It's time to test your knowledge of Static initialization blocks. You can ...