0% found this document useful (0 votes)
3 views17 pages

Introduction to Java Programming Basics

The document provides an introduction to Java, covering its history, advantages, and differences between JDK, JRE, and JVM. It includes instructions for compiling and running a simple Java program, as well as an overview of various types of Java applications and editions. Additionally, it discusses JVM architecture and addresses common questions regarding Java's platform independence and performance.

Uploaded by

cecom74564
Copyright
© All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
3 views17 pages

Introduction to Java Programming Basics

The document provides an introduction to Java, covering its history, advantages, and differences between JDK, JRE, and JVM. It includes instructions for compiling and running a simple Java program, as well as an overview of various types of Java applications and editions. Additionally, it discusses JVM architecture and addresses common questions regarding Java's platform independence and performance.

Uploaded by

cecom74564
Copyright
© All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd

Introduction

Topic/Courseto JAVA
Sub-Topic (Example: name of college)

Program Internal
Why and How Java?
• History of Java

• Why Java?

• Where Java?

• Difference between JDK, JRE, JVM


Compiling our first Program
• Install the JDK if you don't have installed it.

• Set path of the jdk/bin directory.

• Create the java program (preferred notepad)

• Compile and run the java program (Assuming program is saved as [Link]

• For compiling : javac [Link]

• For executing : java Hello


1 public class Main
2 {
3 public static void main(String[] args)
4 {
5 [Link](“Welcome to FACE”);
6 }
7 }
8
9
10
11
12
13
14
15
Output
Welcome to FACE
During Compile time
After writing our first program, we compile them.

[Link] can be used in different operating system


During runtime
Types of Java Application
• Standalone Application

• Web Application

• Enterprise Application

• Mobile Application
Types of Java Editions
• Java SE – Standard Edition

• Java EE – Enterprise Edition

• Java ME – Micro Edition

• JavaFX
JVM Architecture
• JVM gives the definitions …
• JVM works with …
• Memory area
• Loads code
• Class file format
• Verifies code
• Register set
• Executes code
• Garbage-collected heap
• Provides runtime Environment
• Fatal error reporting etc.
JVM Architecture
Path Setting
• Temporary Path

• Permanent Path

• Use of editors – Sublime editor, code block

• Notepad – Execute a program


Why is JAVA Platform Independent?
Why is JAVA both interpreted and
compiled language?
Why is JAVA both interpreted and
compiled language?
Why is JAVA slow?
THANK YOU

You might also like