You are on page 1of 4

NAME: SANA THAKUR

SAP ID: 500083747


BATCH: 4
ROLL NO.: R2142201014

OBJECT ORIENTED PROGRAMMING LAB

ASSIGNMENT-1

Write in your own words your understanding about today’s lab covering:

1. Java Versions
There have existed 18 versions of Java until now, the latest one being Java SE 16 which was launched in
March 2021. The very first version of Java was launched in 1995. Here’s a list of all the 18 versions:

 JDK Beta (1995)


 JDK 1.0 (January 1996)
 JDK 1.1 (February 1997)
 JDK 1.2 (December 1998)
 JDK 1.3 (May 2000)
 JDK 1.4 (February 2002)
 J2SE 5.0 (September 2004)
 Java SE 6 (December 2006)
 Java SE 7 (July 2011)
 Java SE 8 (LTS) (March 2014)
 Java SE 9 (September 2017)
 Java SE 10 (March 2018)
 Java SE 11 (LTS) (September 2018)
 Java SE 12 (March 2019)
 Java SE 13 (September 2019)
 Java SE 14 (March 2020)
 Java SE 15 (September 2020)
 Java SE 16 (March 2021)

2. JDK and JRE


JDK JRE
Stands for Java Development Kit. Stands for Java Runtime Environment.
Required for the developers Required by the user
JDK is the bigger package (284 MB). JRE is comparatively smaller in package
(204 MB).
JDK already has JRE environment in it. You JRE is needed by the user to execute the
can therefore, both code and view your class file.
code as a user)

3. Setting Path
The path of Java files is set to locate the JDK Packages. We use javac and java to set path in our systems.
Path is an environment variable which specifies the directories to search in order to use a command. By
setting the path, we can specify at which location a particular class file or library is placed in our system. So
when the program runs, it knows where it can find all the resources needed. The path can also be set
temporarily by the command: set path=”path”

4. Code Editors
Code editor or source code editor is a compiler, interpreter and debugger all together used to make
programming easier. They highlight and differentiate the different parts of a program and also make finding
errors easier.
We had talked about many code editors that we are going to be using in our course. A few of them were VS
Code, Intellij, Eclipse etc.

VS Code: VS Code provides essential language features such as code completion, refactoring, linting,
formatting, and code snippets along with convenient debugging and unit test support. VS Code also
integrates with tooling and frameworks such as Maven, Tomcat, Jetty, and Spring Boot. Leveraging the
power of Visual Studio Code, Java developers get an excellent tool for both quick code editing and also the
full debugging and testing cycle. It's a great choice for Java work.

Intellij: IntelliJ IDEA is an integrated development environment written in Java for developing computer
software. It is developed by JetBrains, and is available as an Apache 2 Licensed community edition, and in a
proprietary commercial edition. Both can be used for commercial development.

Eclipse: is an IDE for writing and compiling Java programs. It highlights the syntax you have written. This
tool enables you to easily debug the program.

5. Sample Hello World Program.

 Online compiler
 Command Prompt

 Intellij

You might also like