Category Language

malloc( ) and free( )

allocates the requested memory and returns a pointer to it. (Dynamic memory allocation) should #include<stdlib.h> void *malloc(# of bytes): ...

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 ...