MODULE 1: Lesson 2 Flashcards
Who created Java?
James Gosling, Mike Sheridan, and Patrick Naughton of Sun Microsystems.
## Footnote
Java was created in 1991.
What was Java initially called?
Oak.
The first project developed using Java was a personal
hand-held remote control named Star7.
What are some important Java applications?
- Developing Android Apps
- Creating Enterprise Software
- Mobile Java Applications
- Programming Hardware devices
- Server-Side Technologies like Apache, JBoss, GlassFish, etc.
Gosling et al. realized that Java could be used for Internet programming.
What is source code?
Source code is a human-readable language used by Java Programmers to write programs.
Example: public class HelloWorld { public static void main(String[] args) { System.out.println(“Hello, World!”); }}
What does Java Architecture combine?
Java Architecture combines the process of compilation and interpretation to explain the various processes involved in formulating a Java program.
Example: Java programs are first compiled into bytecode and then interpreted by the Java Virtual Machine.
What are the components of Java programming language?
The components of Java programming language include Source Code, Java Compiler, Byte Code, and Java Virtual Machine (JVM).
What is the role of Java Virtual Machine (JVM)?
Java Virtual Machine (JVM) provides a runtime environment to drive Java Code or applications. It converts Java bytecode into machine language. JVM is a part of the Java Runtime Environment (JRE).
Example: JVM ensures that Java programs can run on any platform that has a JVM installed.
Why JVM?
JVM provides a platform-independent way of executing Java source code.
WORA Once you run a Java program, you can run on any platform and save lots of time.
What is JIT in JVM?
JVM comes with JIT (Just-in-Time) compiler that converts Java source code into low- level machine language. Hence, it runs faster than a regular application.
What is JRE?
JRE is a piece of software that is designed to run other software. It contains the class libraries, loader class, and JVM. If you are not a programmer, you don’t need to install JDK, but just JRE to run Java programs.
Why use JRE?
JRE Contains class libraries, JVM, and other supporting files. It does not include any tool for Java development like a debugger, compiler, etc.
It uses important package classes like math, swing, util, lang, awt, and runtime libraries. If you have to run Java applets, then JRE must be installed in your system.
What is JDK?
JDK is a software development environment used for making applets and Java applications.
Where can Java developers use JDK?
Java developers can use JDK on Windows, macOS, Solaris, and Linux.
What does the compiler in JDK do?
Compiler converts code written in Java into byte code.
Example sentence: The compiler in JDK translates Java code into a format that can be executed by the Java Virtual Machine.
What tools are included in JDK?
JDK includes a compiler, Java application launcher, Appletviewer, etc.