Interview Questions - Success of Java
Interview Questions - Success of Java
6. What is an assembler?
7. What is a compiler?
1
8. What was Java initially known as?
Oracle
JVM stands for Java Virtual Machine. It is the software which accepts byte
code as its input and produces machine level code as its output.
Intermediate code is such a code which is neither in high level nor in machine
level. It is also called bytecode.
2
16. What is a class loader?
Byte code verifier is part of JRE. It ensures the security of the system. It verifies
all the bytecodes before it gets executed.
Interpreter is a software which converts high level code to machine level code.
Until and unless a statement is interpreted and executed the next high level
statement would not get interpreted.
Compiler Interpreter
3
20. What is JIT?
JIT stands for Just In Time Compiler. It is the part of JVM. Compilation would
be done during the execution of a program at runtime. It usually runs more
quickly in the computer because it compiles the bytecode into platform-specific
executable code that is immediately executed. JIT compiler is enabled by
default. When a method has been compiled, the JVM calls the compiled code of
that method directly instead of interpreting it.
RTS stands for Run Time System ,it is a part of JVM. It is involved in
Exception Handling.
JDK stands for Java Development Kit. It consists of all the required
software such as Java Compiler, Class Loader, Byte Code Verifier, Java Class
Libraries, Java Interpreter, Just In Time Compiler and Runtime System for the
development of a java project.
25. What is the latest version of Java available and when was it released?
4
26. Which is the next version of Java and when would it be released?
Because Java was open source, many freelancers contributed their ideas and
added many features and hence Java grew rich in features.
1994
1992
5
32. What is meant by architecture neutrality?
Object file contains code in machine level whereas Class file contains code in
intermediate level i.e. byte code
No. If a source file has more than one class, each class is compiled into a
separate class file. JVMs are available for many platforms, and a class file
compiled on one platform will execute on a JVM of another platform. This
makes Java applications platform-independent.
Yes. An object file is a file which contains the program in machine level and
hence it is platform dependent
36. Can we have single JVM on a system which has multiple OS?
No, JVM is platform dependent and a single JVM cannot work with many OS.
Rather each OS would be having a JVM of its own.
6
It is relatively slow in execution.
40. What is the single most important feature of Java that lead to its
success?
Portability
41. What is the difference between JDK and JVM?
JVM is a part of JDK.
For a java program to be successfully executed a collection of software are
required. This collection of software which can be freely downloadable from
internet is referred to as “Java Development Kit” or JDK, whereas JVM stands
for Java Virtual Machine. It is the software which accepts byte code as its input
and produces machine level code as its output.
7
Hence, we have two memories in our computer which can satisfy 2
expectations each.
8
54. What is a linkage editor?
It is a software which links the object file with the required library files and
produces an executable file.
9
63. Can we send IL code over internet? Comment.
Yes, and it is recommended to send Intermediate level code as it is both secured
and machine independent as well.
64. Why can’t we have a single JVM to work for all OS?
Because JVM is platform dependent. There is a specific JVM for a specific OS.
10