Java TutorialLesson 3Free preview
Java Get Started
This lesson is part of Java · All levels
Summary
This lesson will guide you from scratch: installing JDK, writing the first program, compiling with javac, running it with java. You also learn to use an integrated development environment (IDE) like NetBeans or Eclipse to make the code writing process more convenient. The bottom line is, the three main steps are writing, compiling, running.
Key points
- Install the JDK first, then set the PATH environment variable so that the javac and java commands are recognized.
- Workflow: write code in the file .java, compile with javac, run with java
- The class name on the file must be exactly the same as the file name, including the capital letters
- IDE like NetBeans, Eclipse, or IntelliJ makes compilation and debugging easier.
Full lesson
Code examples and quizzes
Full lessons, code examples, and quizzes are available to subscribers. 5 questions.