Java syntax refers to the set of rules and conventions
parungaojoshua
6 views
14 slides
Nov 02, 2025
Slide 1 of 14
1
2
3
4
5
6
7
8
9
10
11
12
13
14
About This Presentation
Java syntax refers to the set of rules and conventions
Size: 1.47 MB
Language: en
Added: Nov 02, 2025
Slides: 14 pages
Slide Content
JAVA PROGRAMMING GRADE 9 - SPICT MRS. JENELYN R. MIRANDA Teacher I
What is Java? Java is a popular programming language, created in 1995. Java is used to develop mobile apps, web apps, desktop apps, games and much more.
is a Canadian computer scientist, best known as the founder and lead designer behind the Java programming language JAMES GOSLING May 19, 1955 (age 67 years)
What is JDK? Allows developers to create Java programs that can be executed by the Java Runtime Environment (JRE).
What is IDE? An integrated development environment (IDE) is software for building applications that combines common developer tools into a single graphical user interface (GUI).
Exampe of IDE Software for creating a Java? Netbeans Eclipse IntelliJ
What is GUI? A GUI (graphical user interface) is a system of interactive visual components for computer software . A GUI displays objects that convey information, and represent actions that can be taken by the user.
JAVA Syntax public class Main { public static void main ( String [] args ) { } }
System . out . println public class Main { public static void main ( String [] args ) { System . out . println ( "Hello World" ); } } Used to display something in the console.
System . out . print public class Main { public static void main ( String [] args ) { System . out . print ( "Hello World" ); } } Used to display something in the console on the same line.
Every line of code that runs in Java must be inside a class . In our example, we named the class Main . A class should always start with an uppercase first letter. Note: Java is case-sensitive: "MyClass" and "myclass" has different meaning.
The name of the java file must match the class name. When saving the file, save it using the class name and add ".java" to the end of the filename. The main() method is required and you will see it in every Java program.
Note: The curly braces {} marks the beginning and the end of a block of code. System is a built-in Java class that contains useful members, such as out, which is short for "output". The println() method, short for "print line", is used to print a value to the screen (or a file).