You are on page 1of 2

Algorithm: A set of steps that outline how to solve a problem.

Comment: Text that provides information to the reader of program cfode.


Comment block: Multiline comments that describe a program, class. or method.
Compiling: The process where source code is converted to code the computer understands.
Execute: To run a program
Java Virtual Machine: (Java VM) The Java bytecode interpreter
Object Oriented Programming: A systematic, modular approach to developing complex
programs
Source Code: The code typed by a programmer
Syntax Error:A statement that violates the rules of Java. (Error in coding, missing punctuations)
// Comment single line comments
/* */ multiline comments
{} Blocks
\n \t Newline + Tab
main() main method
print()
println()
Operator
Description
+
Unary plus operator; indicates positive value (numbers are positive without this,
however)
Unary minus operator; negates an expression
++
Increment operator; increments a value by 1
-Decrement operator; decrements a value by 1
!
Logical complement operator; inverts the value of a boolean
Scanner sc=new Scanner (System.in);
Scanner input=new Scanner (System.in);
class ConcatDemo {
public static void main(String[] args){
String firstString = "This is";
String secondString = " a concatenated string.";
String thirdString = firstString+secondString;
System.out.println(thirdString);
}
}

By the end of this program, the variable thirdString contains "This is a concatenated string.", which gets
printed to standard output.
==
!=
>
>=
<
<=

equal to
not equal to
greater than
greater than or equal to
less than
less than or equal to

X += 2; (Adds two to x)
X -=2; (subtracts two from x)

X *=2; (multiplies two from x)


X /=2; (divides two from x)

You might also like