Java Flashcards

1
Q

What is Java?

A

High-level, platform independent programming language and environment.

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
2
Q

What is a variable and its purpose?

A

Used to store information to be referenced and used by programs.

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
3
Q

What are the different variables?

A

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

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
4
Q

What are the different mathematical operators?

A
Addition
Subtraction
Multiplication
Division
Modulus Division
How well did you know this?
1
Not at all
2
3
4
5
Perfectly
5
Q

What are the different relational operators?

A
> Greater than
>= Greater than or equal to
< Less than
<= Less than or equal to
== Equal to
!= Not equal to
How well did you know this?
1
Not at all
2
3
4
5
Perfectly
6
Q

What are the different boolean operators?

A

& AND
| OR
^ XOR
! NOT

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
7
Q

What are the different conditional operators?

A

&& AND

|| OR

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
8
Q

What are the characteristics of Java?

A

The curly braces and semi-colon.
Class name starts with a capital letter.
Method names are lowercase.
Keywords are lowercase and colour coded

How well did you know this?
1
Not at all
2
3
4
5
Perfectly