0% found this document useful (0 votes)
3 views

Introduction to Java and Syntax

Java is a high-level, object-oriented programming language created in 1995, known for its portability via the Java Virtual Machine. Key topics include the basic structure of a Java program, data types, control structures, and simple input/output. An example provided illustrates a basic Java program that prints 'Hello, World!'.

Uploaded by

someoneishere721
Copyright
© © All Rights Reserved
Available Formats
Download as PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
3 views

Introduction to Java and Syntax

Java is a high-level, object-oriented programming language created in 1995, known for its portability via the Java Virtual Machine. Key topics include the basic structure of a Java program, data types, control structures, and simple input/output. An example provided illustrates a basic Java program that prints 'Hello, World!'.

Uploaded by

someoneishere721
Copyright
© © All Rights Reserved
Available Formats
Download as PDF, TXT or read online on Scribd
You are on page 1/ 1

Introduction to Java and Syntax

Introduction to Java and Syntax

Java is a high-level, object-oriented programming language that is widely used for developing
enterprise applications, mobile applications, and web applications. Created in 1995 by James
Gosling and his team at Sun Microsystems, Java emphasizes portability (write once, run anywhere)
through its use of the Java Virtual Machine (JVM).

Key Topics:
- Basic structure of a Java program (classes, methods, main method)
- Data types: int, double, char, boolean, etc.
- Control structures: if-else, switch, for loop, while loop
- Simple input/output using System.out.println()

Example:
--------------------------------
public class HelloWorld {
public static void main(String[] args) {
System.out.println("Hello, World!");
}
}
--------------------------------

You might also like