Java Introduction

What Java is and where it is used.

✍️ 2 exercises in this lesson

Java is a popular, object-oriented programming language released by Sun Microsystems in 1995 and now owned by Oracle.

Java code is compiled to bytecode that runs on the Java Virtual Machine (JVM), so the same program runs on Windows, macOS and Linux: "write once, run anywhere".

What Java Is Used For

  • Android apps
  • Enterprise and banking systems
  • Web backends (Spring Boot)
  • Big data tools (Hadoop, Kafka)

Key Takeaways: Java Introduction

Mastering Java Introduction helps you write clean and reliable Java code. Follow standard conventions, test edge cases, and keep logic simple. Try running the code example below and complete the exercises to build confidence.

Java Introduction Code Example

Java
public class Main {
    public static void main(String[] args) {
        System.out.println("Hello, CodesInTech!");
    }
}
Output
Hello, CodesInTech!
Run this example on your own computer. The "Get Started" lesson shows how to set it up.

Java Introduction Practice Exercises

Check what you learned in “Java Introduction”.

/ 2 solved
Fill in the blank

Print a line of text.

System.out.("Hello");
✓ Correct! Not quite. Try again.
Multiple choice

What does Java code run on?

✓ Correct! Not quite. Try again.
to save your exercise progress.
Finished this lesson?
Mark it complete to track your progress.

Stuck on something?

Ask the community in the CodesInTech forum.

Need a developer?

Learning on your own is great — and when you need professional help, our team builds custom software, websites and mobile apps for clients worldwide.

Explore Our Services