Here are some Java Interview Questions. The level of questions is suitable for beginners as well advanced core Java programmers. We would initially start with the Java basics.
The series includes more than 200 questions, so stay tuned for more.
Q1. Java was initially called what?
A1. Java was called “Oak”, and was given the name “Java.
Q2. When the initial version of Java launched and who originally developed it?
A2. Java was originally developed by James Gosling and was initially released in 1995
Q3. Define JAVA?
Java is an object oriented programming language, which is platform independent. It was developed in 1995 and acquired by Oracle in 2010.
Q4. State the Java Versions?
Here are the Java Versions,
|Java Release||Release Year|
|Java SE 6||2006|
|Java SE 7||2011|
|Java SE 8||2014|
Q5. State some applications of Java
- 100+ TV Devices run Java
- 3 Billion Mobile Phones run Java
- Game consolesFor more applications of Java!
Q6. Java addresses the following well-known issues of Internet?
A6. Portability and Security are the major issues with Internet. Java came at the time when WWW came to light. The Internet required a portable programming language to address its issues.
Q7. State how Java solves the issue of Portability and Security?
A7. Java solves the issue of Portability and Security since the output of a Java compiler is Bytecode, not executable code.
Q8. What is Bytecode?
A8. The set of instructions designed to be executed by the Java run-time system is Bytecode. Here, the set of instructions are highly optimized and the Java run-time system is called the Java Virtual Machine (JVM).
Q9. What is Java Virtual Machine (JVM)?
A9. JVM provides runtime environment in which Java bytecode can be executed
Q10. Why a Java program is translated to Bytecode?
A10. The translation makes it easier to run a program in different environments. This is because only the JVM needs to be implemented for each platform.