Induction Flashcards

1
Q

Values can hold values of types that are…

A

Declared

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

Java has two types of types:

A

Primitive and Classes

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

Why is 13.println() an error?

A

Because int is not an object and you can’t call a method on it

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

Identifiers can only begin with:

A

Letters, dollar sign or underscore

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

Assignment operators

A
=
\+
-
/
*
%
How well did you know this?
1
Not at all
2
3
4
5
Perfectly
6
Q

Comparison operators

A

== equal
!= not equal
>

=

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

Logical operators

A

&& and
|| or
!

These are used to eat true or false for example in for loops

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

Examples of string methods

A

.length
.toUpperCase
.replace(“issipp”, “our”) replaces with our

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

Types are sets with…

A

The same behaviour

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