JDK Architecture, JDK Installation AND Steps to create, compile and execute java program

 JDK Architecture

It is a package provided by oracle community basically we use this to develop java programs. It consists of JRE (Java runtime environment) as well as development tools to develop java applications

JVM (Java virtual machine)

It is an interpreter which reads the .class file (byte code) line by line execute

JRE (Java runtime environment)

 It used to run the java codes. If I want to just run the java software we need JRE

JRE consist of JVM and some built in library file to run the java codes with this it converts byte code to machine understandable

JDK installation

Step 1: visit to any browser and search for JDK version which you want to install

Step 2: After that download JDK file and install it.

Step 3: Go search bar (on main screen) search for ‘Environmental variable’ and give the path.

Steps to create, compile and execute java program

Step 1: To create a java program, we need editors e.g notepad, wordpad , etc. also we can use IDE (Integrated development environment) e.g Eclipse, visual studio, net beams, etc.

After writing the program we need save the program with extension .java

Step 2: Call the java compiler to create class file

A compiler checks syntax (rules) if  the syntax is correct class file generate  if syntax is wrong we get compile error

Step 3: Execute the class file with the help of JRE

Post a Comment

0 Comments
* Please Don't Spam Here. All the Comments are Reviewed by Admin.
https://otieu.com/4/9433883
https://otieu.com/4/9433883