Welcome to Java

Introduction to Java

Jim White

Java Developer

Your instructor - Jim White

$$

  • Software developer and manager
  • Working with Java since (almost) its inception

Java Logo

Picture showing Jim White

Introduction to Java

Who is this course for?

  • Anyone

  • Java:

    • Syntax is stricter and less intuitive than, e.g., Python or JavaScript
    • Flexible and scalable
  • Steeper learning curve

Java logo

Introduction to Java

What is Java?

  • High-level, general-purpose, memory-safe, object-oriented programming language

Bar plot showing Java was the second most popular programming language in 2024.jpg

                                           Popularity of Programming Languages

1 https://softjourn.com/insights/is-java-still-used
Introduction to Java

Where is Java?

Google, Amazon, Netflix, and Android logo

Introduction to Java

Starting out

class WelcomeToJava {

    public static void main(String[] args) {

    }

}

  • Code is organized into classes
  • Method public static void main(String[] args)
    • entry point of our program
Introduction to Java

Printing out - how not to do it

class WelcomeToJava {

    public static void main(String[] args) {

"Hello Java!"
} }
src/Main.java:8: error: not a statement "Hello Java!" 
src/Main.java:8: error: ';' expected "Hello Java!"
2 errors error: compilation failed
Introduction to Java

Printing out - the correct way

class WelcomeToJava {

    public static void main(String[] args) {

System.out.println("Hello Java!")
} }
Hello Java!
  • Printing requires double quotes ""
Introduction to Java

Let's practice!

Introduction to Java

Preparing Video For Download...