Basic Syntax in Java
An overview of basic syntax in Java.
StartKey Concepts
Review core concepts you need to learn to master this subject
Comments
Printing
Variable Types
Manipulating Number Variables
Conditional Statements
Comparison and Logical Operators
Loops
break and continue
Comments
Comments
// This is an inline comment. It only includes this line.
/*
This is a block comment. Anything between the asterisks is part of the comment.
*/
There are two types of comments in Java: inline, and block.