Search Header Logo
Java Day 00

Java Day 00

Assessment

Presentation

Education

9th - 12th Grade

Practice Problem

Hard

Created by

Keith Fiore

Used 5+ times

FREE Resource

15 Slides • 0 Questions

1

media
media

Java Day 1

A Gentle Introduction

2

media

What is
Java?

General-purpose

computer-programming
language

Concurrent, class-based,

object-oriented

… and minimum

implementation of
dependencies as possible

3

media
media

Java bytecode is the

instruction set of the Java

virtual machine

4

media

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

media

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

media
media

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

media

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

media

Download

Java JDK -
https://drive.google.com/file
/d/1hGjA0f5OvTL4tpp6hzflN
PTceQQmb0Ns/view?usp=sh
aring

9

media

Download

DrJava -
https://drive.google.com/file
/d/1ANTDnN-w_TWSGpS3N
VJ6O920xkX3z_dS/view?usp
=sharing

10

media

VS Code

Our IDE - Dr. Java

IDE = Integrated
Development Environment

media

11

media

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

media

12

media

Java programs are called
‘classes’

They exist inside a container
called a project

All classes have at least one
method called main()

media

13

media

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

media

14

media

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

media

15

media

Let’s Write our first Java
Program!!

media
media
media

Java Day 1

A Gentle Introduction

Show answer

Auto Play

Slide 1 / 15

SLIDE