Fireship · @fireship
Java in 100 Seconds
Uploaded November 3, 2021 · Length 2:25
Summary
java basics explained in 100 seconds, including compilation, syntax, and object-oriented programming
- java programming language
- java basics
- java tutorial
- java syntax
- object-oriented programming
Transcript preview
The first 2 minutes of the transcript. Select a timestamp to watch that moment on YouTube.
- 0:00
Java a highlevel multi-paradigm
- 0:02
programming language famous for its
- 0:04
ability to compile to platform
- 0:06
independent B code it was designed by
- 0:08
James Gosling in 1990 at Sun
- 0:10
Microsystems one of its first
- 0:12
demonstrations was the star 7 PDA which
- 0:14
gave birth to the Java mascot Duke today
- 0:17
it's one of the world's most popular
- 0:19
programming languages it Powers
- 0:20
Enterprise web apps with spring
- 0:22
framework Big Data pipelines with Hadoop
- 0:24
mobile apps on Android and even things
- 0:26
like the controller for NASA's Maestro
- 0:28
Mars Rover what made jav but Innovative
- 0:30
is that instead of compiling to machine
- 0:32
code like C or C++ it compiles to bik
- 0:35
code that can run on any operating
- 0:37
system without recompiling which is made
- 0:39
possible by executing the code with the
- 0:41
Java virtual machine or jvm it's both a
- 0:44
compiled and interpreted language at the
- 0:46
same time the computer just needs to
- 0:48
have the Java runtime environment or JRE
- 0:50
installed and most of them do for
- 0:52
developers this means right once run
- 0:54
anywhere it's a strongly typed language
- 0:56
with a curly bra syntax similar to the C
- 0:59
family how however it provides more
- 1:01
highlevel features like garbage
- 1:02
collection runtime type checking and
- 1:05
reflection to get started install the
- 1:07
Java development kit or jdk then create
- 1:09
a file ending in Java every Java program
- 1:12
starts with a class name which should
- 1:14
also match the file name the class is
- 1:16
required to have a main method this is
- 1:18
where your code will start executing
- 1:20
inside the method Define a variable by
- 1:22
starting with a type followed by a name
- 1:24
and value we can then print it to the
- 1:26
standard output using the built-in
- 1:28
system class now because we're inside
- 1:29
inside of a class we Define functions as
- 1:32
methods on this class the public keyword
- 1:34
means that it can be used outside of
- 1:35
this class and static means that it's a
- 1:37
member of the class itself as opposed to
- 1:40
an instance of the class we then provide
- 1:42
a type and name and return a value from
- 1:44
it you can Define your own custom
- 1:46
classes which are blueprints for objects
- 1:48
then add attributes and methods to them
- 1:50
use the new keyword to instantiate an
- 1:52
object from the class it feels very
- 1:54
objectoriented but has evolved to
- 1:56
support functional patterns like
- 1:58
Anonymous Lambda methods when your PR is


