0% found this document useful (0 votes)
17 views8 pages

Introduction to Java Programming Basics

Uploaded by

acercrollercoil
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)
17 views8 pages

Introduction to Java Programming Basics

Uploaded by

acercrollercoil
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

Lesson 1:

Java Language
Java Programming Language
• History
• Java technology: JDK, JRE, JVM
• Properties
• ‘Hello world’ application
• Garbage Collection
Brief History
• 1991 - Green Project for consumer electronics
market (Oak language → Java)
• 1994 – HotJava Web browser
• 1995 – Sun announces Java
• 1996 – JDK 1.0
• 1997 – JDK 1.1 RMI, AWT, Servlets
• 1998 – Java 1.2 Reflection, Swing, Collections
• 2004 – J2SE 1.5 (Java 5) Generics, enums
• 2014 – Java 8 Lambdas
Java Technology
• JDK – Java Development Kit
• JRE – Java Runtime Environment
• JVM – Java Virtual Machine
Properties
• Object-oriented
• Interpreted
• Portable
• Secure and robust
• Scalable
• Multi-threaded
• Dynamic language
• Distributed
Hello World Application
• Hello World Application
1. Write the source code: [Link]

2. Compile: javac [Link]


3. Run: java HelloWorld
Hello World Application
Garbage Collection
• Dynamically allocated memory
• Deallocation
– Programmer's responsibility (C/C++)
– System responsibility (Java):
– Is done automatically (system-level thread)
– Checks for and frees memory no longer needed

You might also like