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