Category Language

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

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