What is Singleton? Restricts a class to instantiate its multiple objects and allows only one instance that has a control throughout the execution ...
Category Language
What does the symbol ‘&’ mean in C and C++?
‘&’ symbol has two meanings in C and C++. Address of Operator: returns address of a variable. int a = 3; printf(“%d”, ...
malloc( ) and free( )
allocates the requested memory and returns a pointer to it. (Dynamic memory allocation) should #include<stdlib.h> void *malloc(# of bytes): ...
os.system() vs. subprocess.call()
os.system() executed in a subshell, usually bash on linux and OSX, and cmd.exe on windows. The shell will take the string given and interpret the ...
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 ...
Stack based VM vs. Register based VM
There are basically two main ways to implement a virtual machine Stack based: ex. Java VM Register based: ex. Dalvik VM The memory structure ...
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 ...