Java Flashcards
What is Java?
High-level, platform independent programming language and environment.
What is a variable and its purpose?
Used to store information to be referenced and used by programs.
What are the different variables?
Integer (Int) - whole numbers
Float - numbers with decimal places
Boolean - logical data which can either be true or false
Char (string) - text character separated by apostrophes
What are the different mathematical operators?
Addition Subtraction Multiplication Division Modulus Division
What are the different relational operators?
> Greater than >= Greater than or equal to < Less than <= Less than or equal to == Equal to != Not equal to
What are the different boolean operators?
& AND
| OR
^ XOR
! NOT
What are the different conditional operators?
&& AND
|| OR
What are the characteristics of Java?
The curly braces and semi-colon.
Class name starts with a capital letter.
Method names are lowercase.
Keywords are lowercase and colour coded