Search Header Logo

Static, Non-static and final fields and methods

Authored by Claire Firman

Computers

11th - 12th Grade

Used 18+ times

Static, Non-static and final fields and methods
AI

AI Actions

Add similar questions

Adjust reading levels

Convert to real-world scenario

Translate activity

More...

    Content View

    Student View

10 questions

Show all answers

1.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

To declare a field as a constant, use:

final

static

constant

neva-change

2.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

In a class diagram, how do you know which fields are static?

Underlined

Bold

Italics

They are marked "static"

3.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

Non-static methods can use static fields

True

False

4.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

Static methods can use non-static fields

True

False

5.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

Static methods can use static fields

True

False

6.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

Non-static methods can use non-static fields

True

False

7.

MULTIPLE SELECT QUESTION

45 sec • 1 pt

Name two static fields of the Math class

Math.PI

Math.E

Math.POW

Math.random()

Access all questions and much more by creating a free account

Create resources

Host any resource

Get auto-graded reports

Google

Continue with Google

Email

Continue with Email

Classlink

Continue with Classlink

Clever

Continue with Clever

or continue with

Microsoft

Microsoft

Apple

Apple

Others

Others

Already have an account?