Hello World
Welcome to the world of Java programming! Java is a popular object-oriented programming language that is used in many different industries.
StartKey Concepts
Review core concepts you need to learn to master this subject
Print Line
Print Line
System.out.println("Hello, world!");
// Output: Hello, world!
System.out.println()
can print to the console:
System
is a class from the core library provided by Javaout
is an object that controls the outputprintln()
is a method associated with that object that receives a single argument
Hello World
Lesson 1 of 1
- 1Welcome to the world of Java programming! Programming languages enable humans to write instructions that a computer can perform. With precise instructions, computers coordinate applications and sy…
- 2Java runs on different platforms, but programmers write it the same way. Let’s explore some rules for writing Java. In the last exercise, we saw the file HelloWorld.java. Java files have a **….
- 3Let’s take a closer look at this instruction from our previous program: System.out.println(“Hello World”); Print statements output information to the screen (also referred to as the output termin…
- 4Writing code is an exciting process of instructing the computer to complete fantastic tasks. Code is also read by people, and we want our intentions to be clear to humans just like we want our in…
- 5As we saw with comments, reading code is just as important as writing code. We should write code that is easy for other people to read. Those people can be co-workers, friends, or even yourself! …
- 6Java is a compiled programming language, meaning the code we write in a .java file is transformed into byte code by a compiler before it is executed by the Java Virtual Machine on your comp…
- 7Compilation helped us catch an error. Now that we’ve corrected the file, let’s walk through a successful compilation. As a reminder, we can compile a .java file from the terminal with the comm…
- 8In this lesson, we’ve started writing our first programs in Java. We’ve also learned rules and guidelines for how to write Java programs: * Java programs have at least one class and one main() me…
What you'll create
Portfolio projects that showcase your new skills
How you'll master it
Stress-test your knowledge with quizzes that help commit syntax to memory