AI Hints
Home›Java Tutorial›What Java Is, Where Java Is Used and How Java Runs Your Code
Java · Lesson 1 of 120

What Java Is

A language for real programs.

⏱ 2 min read▶ Video at 0:00🎓 Free
Watch this lesson in the Java courseWatch on YouTube ↗Full Java course

Java is a programming language. It's one of the most used languages in the world, and it's a great first language to learn.

  • A programming language
  • One of the most used
  • A great first language

Java in a few words

A programming language is a way to give a computer instructions, as text. Java was released in nineteen ninety five, by a company called Sun Microsystems. Today, Oracle looks after it, along with a big open source community. Its famous idea is write once, run anywhere.

keyvalue
Whata programming language
Released1995, by Sun
TodayOracle and the community
Big ideawrite once, run anywhere

A first look

Here is a complete Java program. Don't worry about every word yet. We'll learn each part, slowly, in the next lessons. For now, look at the two lines in the middle. The first prints a greeting, and the second prints two plus three. Run it. We see the greeting, and then five.

Main.javajava
public class Main {
    public static void main(String[] args) {
        System.out.println("Hello from Java!");
        System.out.println(2 + 3);
    }
}
Output
Hello from Java!
5

What this course covers

We start from zero, one small step at a time. First values, text, decisions, and loops. Then arrays, methods, classes, and objects. And later, collections, exceptions, files, modern Java with streams, and a small project.

keyvalue
Startzero experience
Basicsvalues, text, decisions, loops
Coremethods, classes, objects
Latercollections, files, streams, project

Summary

Java is a popular programming language, released in nineteen ninety five, built to run anywhere. Next, where Java is used in the real world.

Key takeaways
  • A programming language
  • Since 1995
  • Write once, run anywhere
Next up: Where Java Is Used — banks, Android, servers