Java Getting Started
Java Getting Started
1. Introduction to Java
Java is a high-level, class-based, object-oriented programming language that is designed to
have as few implementation dependencies as possible. It is a general-purpose programming
language intended to let application developers write once, run anywhere (WORA),
meaning that compiled Java code can run on all platforms that support Java without the
need for recompilation.
1. Download and install the Java Development Kit (JDK) from Oracle's official website.
Example:
Exercise
Write a Java program that prints your name to the console.
Solution
Example:
Exercise
Create a program that declares variables for your name, age, and city, and then prints them
to the console.
Solution