3 Flashcards
A comment.
What does /* suggest
Declares the identifier and data type for a variable.
Variable declaration statement
Variables whose values cannot change.
Constants
Assigning a value to a variable that is outside of the ranges of values that the data type can represent.
Arithemetic overflow
Expressions imvolving integers and floating-point values.
Mixed-mode arithmetic
Allows one data type to be explicitly converted to another.
Type casting
Append a string or value to another string.
String concatenation
Used in codes to represent characters that cannot be directly typed into a program.
Escape character ()
System.out.print(“Something to print”); or System.out.println(“Something to print with a line (LiNe)”);
How do you print something in the output?
So Java knows that it is the end of a statement.
Why is there a semicolon (;) at the end of each statement?
Things that store information.
What are variables?
(A kind of variable) (name of the variable) = (value of variable);
For example, String var = “Hello, World”;
How do you create variables?
//Comment /*Multi-Line Comment*/ /**JavaDoc Comment *Describes Program or *Method **/
How do you make a comment?`
For letting your program run.
What is a main method for?
public static main(String[] args) { //Your program goes here! }
How do you make a main method?