Static, Non-static and final fields and methods

Static, Non-static and final fields and methods

11th - 12th Grade

10 Qs

quiz-placeholder

Similar activities

AQA GCSE Databases and SQL

AQA GCSE Databases and SQL

9th - 12th Grade

14 Qs

STARFIELD MID-TERM

STARFIELD MID-TERM

9th - 12th Grade

15 Qs

Application and software IV

Application and software IV

11th Grade

14 Qs

Data Link Layer

Data Link Layer

11th Grade

10 Qs

IPs subnets, DCHP and DNS

IPs subnets, DCHP and DNS

12th Grade

14 Qs

JAVA GUI

JAVA GUI

11th - 12th Grade

15 Qs

#128 Accessor Methods

#128 Accessor Methods

11th Grade

12 Qs

Microsoft Access

Microsoft Access

10th Grade - Professional Development

10 Qs

Static, Non-static and final fields and methods

Static, Non-static and final fields and methods

Assessment

Quiz

Computers

11th - 12th Grade

Practice Problem

Medium

Created by

Claire Firman

Used 18+ times

FREE Resource

AI

Enhance your content in a minute

Add similar questions
Adjust reading levels
Convert to real-world scenario
Translate activity
More...

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()

Create a free account and access millions of resources

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?