Category ‧ Java

Singleton Class

What is Singleton? Restricts a class to instantiate its multiple objects and allows only one instance that has a control throughout the execution ...

Serialization #2

JavaBeans are classes that encapsulate many objects into a single object (the bean), and  they are serializable. It provides a default, ...

Serialization #1

Serialization is a process in which current state of Object will be saved in stream of bytes. As byte stream create is platform neutral hence ...

Java Native Interface

Overview JNI allows you to use native code when an application cannot be written entirely in the Java language. The following are typical ...

Dead code

Dead code can never be executed (unreachable code), and it only affects dead variables (written, but never read again), that is, irrelevant to ...

Method Inlining

Inlining is an optimization performed by the Java Just-In-Time compiler. The compiler may decide to replace your function call with the body of ...

Garbage Collection

Garbage Collector root Local variables in the main method The main thread Static variables of the main class Mark and Sweep Algorithm The ...

Java Memory Structure

Static memory (Method area) Method information and Field information. Global constants and other data generated by the compiler(e.g. info to ...

Java features

Java is Easy to write and more readable and eye catching. Java has a concise, cohesive set of features that makes it easy to learn and use. Most ...