
Java Day 00
Presentation
•
Education
•
9th - 12th Grade
•
Practice Problem
•
Hard
Keith Fiore
Used 5+ times
FREE Resource
15 Slides • 0 Questions
1
Java Day 1
A Gentle Introduction
2
What is
Java?
▫ General-purpose
computer-programming
language
▫ Concurrent, class-based,
object-oriented
▫ … and minimum
implementation of
dependencies as possible
3
Java bytecode is the
instruction set of the Java
virtual machine
4
Features
▫ No pointers
▫ Automatic garbage collection
▫ rich pre-defined class library
▫ All functions are associated
with objects
▫ Potentially better code
organization and reuse
▫ Platform independent
▫ Java bytecode can run on any
JVM, on any platform
5
JVM
Steps:
▫ Source code is in plain text files
ending with the .java extension
▫ Compile those source files into
.class files by the javac compiler
▫ A .class file contains bytecodes —
the machine language of the Java
Virtual Machine (Java VM)
▫ Run the bytecode/.class file using
JVM
6
Java
Virtual
Machine
(JVM)
Because the Java VM is
available on many different
operating systems, the same
.class files are capable of
running on any platform.
7
Difference
between
JDK and
JRE?
JRE:
If you want to run Java programs, but
not develop them, download the JRE.
JDK:
If you want to develop Java
applications, download the Java
Development Kit, or JDK.
The JDK includes the JRE, so you do
not have to download both
separately.
8
Download
Java JDK -
https://drive.google.com/file
/d/1hGjA0f5OvTL4tpp6hzflN
PTceQQmb0Ns/view?usp=sh
aring
9
Download
DrJava -
https://drive.google.com/file
/d/1ANTDnN-w_TWSGpS3N
VJ6O920xkX3z_dS/view?usp
=sharing
10
VS Code
Our IDE - Dr. Java
IDE = Integrated
Development Environment
11
Writing,
Compiling,
Running
STEP1: Write and save your program in
Dr Java such as HelloWorld.java
STEP2: Compile the source file into a
.class file
STEP3: Run the program
12
☕
Java programs are called
‘classes’
They exist inside a container
called a project
All classes have at least one
method called main()
13
☕
▫ The main() method is the
starting point for JVM to
start execution of a Java
program
▫ Without the main()
method, JVM will not
execute the program
14
3 “Laws”
1. Every line ends with a ;
unless the next symbol is a
{
2. Every { has a }
3. Classes start with capital
letters, methods and
variables start with
lowercase letters
15
☕
Let’s Write our first Java
Program!!
Java Day 1
A Gentle Introduction
Show answer
Auto Play
Slide 1 / 15
SLIDE
Similar Resources on Wayground
5 questions
Java lesson
Presentation
•
9th - 12th Grade
12 questions
Programming Language
Presentation
•
12th Grade
11 questions
CSS Classes CG March 10 Self Paced
Presentation
•
9th - 12th Grade
7 questions
JavaScript
Presentation
•
9th - 12th Grade
11 questions
World History: Age of Exploration
Presentation
•
9th - 10th Grade
8 questions
Bahasa Pemrograman - Pengenalan Java
Presentation
•
10th Grade
10 questions
Software application
Presentation
•
9th - 12th Grade
10 questions
The Results of Tectonic Plate Movements
Presentation
•
KG
Popular Resources on Wayground
24 questions
PBIS-HGMS Day 10
Quiz
•
6th - 8th Grade
10 questions
HCS SCI 03 Summer School Review 3
Quiz
•
3rd Grade
11 questions
Home Scope
Quiz
•
7th - 8th Grade
15 questions
HCS SCI 05 Summer School Assessment 3 Review
Quiz
•
5th Grade
35 questions
Lufkin Road Middle School Student Handbook & Policies Assessment
Quiz
•
7th Grade
18 questions
Geo 11.3 Area of Circles and Sectors
Quiz
•
9th - 11th Grade