Java Interview Questions
1 .
What is Java ?
Java is an object-oriented programming language developed by Sun Microsystems and released in 1995. Java was originally developed by James Gosling at Sun Microsystems (which has since merge into Oracle Corporation).
2 .
why pointers are eliminated from java?
1)  Pointers lead to confusion for a programmer.
2) Pointers may crash a program easily, for example, when we add two pointers, the program crashes immediately. The same thing could also happen when we forgot to free the memory allotted to a variable and reallot it to some other variable.
3) Pointers break security. Using pointers, harmful programs like virus and other hacking programs can be developed.
Because of the above reasons, pointers have been eliminated from java.
3 .
which part of JVM will allocate the memory for a java program ?
Class loader sub system of JVM will allocate the necessary memory needed by the java program.
4 .
which algorithm is used by garbage collector to remove the unused variables or objects from memory ?
Garbage collector uses many algorithms but the most commonly used algorithm is mark & sweep.
5 .
How can you call the garbage collector ?
Garbage collector is automatically invoked when the program is being run, it can be also called by calling gc() method of Runtime class or system class in java. 
6 .
what is the first browser, having the capabilities of executing the applets ?
HotJava is the first browser, having the capabilities of executing the applets.
7 .
what is the initial name given to java programming language ?
oak is the initial name given to java programming language
8 .
what is JIT compiler?
JIT compiler is the part of JVM which increases the speed of execution of a java program.
9 .
what is the heart of entire java program execution process?
JVM is the heart of entire java program.
10 .
Allocation of memory in java is done by which part of JVM?
Class Loader subsystem.