Back

Activity 1.0 Introduction to Computers

divider

Activity 1.0

Introduction to Computers

Topics

  • Computer Software
    • Binary Information
  • Computer Hardware
    • CPU
    • Memory
    • Peripherals: Storage and I/O
  • Programming
  • Compilers and Interpreters
  • The Java Programming Language
  • Java Syntax

Computer Software

Binary Information

Computer Hardware

CPU

Memory

Peripherals: Storage

Peripherals: I/O Devices

Programming

Compilers and Interpreters

The Java Programming Language

Entrypoint of a Java Program

Java programs begin execution within the main method.

Main.java
public class Main {
public static void main(String[] args) {
}
}

Entrypoint of a Java Program

Java programs begin execution within the main method.

Main.java
public class Main {
public static void main(String[] args) {
System.out.println("Hello, world!");
System.out.println("Great success!");
}
}

Demo

Follow the instructor in creating a new Java project with the software provided.

Java Icon Animation

Key Terms

Syntax
The rules that govern the structure of a valid Java program, much like grammar rules for a language.
Syntax Highlighting
A feature in code editors that displays different elements of a program, like keywords and comments, in different colors to make the code easier to read.
Syntax Error
A mistake in the structure of a program that prevents the code from being compiled or run.

Key Terms

Statement
A command that performs an action, such as printing text to the console.
Terminate
The act of ending a statement with a semicolon (;), which signals to the compiler that the command is complete.

'F' → Fullscreen