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

002_Java Methods

002_Java Methods

12th Grade - University

15 Qs

Unit 2 Inheritance in Java

Unit 2 Inheritance in Java

12th Grade - University

15 Qs

FBLA Database Design and Applications Part 1

FBLA Database Design and Applications Part 1

11th Grade

14 Qs

OOP - Java Classes

OOP - Java Classes

12th Grade - University

15 Qs

Topics 7 & 8 - Static Methods/Variables and Null Keyword

Topics 7 & 8 - Static Methods/Variables and Null Keyword

12th Grade

8 Qs

Java Class vocabulary

Java Class vocabulary

9th Grade - University

12 Qs

Database Normalisation

Database Normalisation

11th - 12th Grade

13 Qs

A Level Computing - Normalisation & SQL

A Level Computing - Normalisation & SQL

12th Grade

12 Qs

Static, Non-static and final fields and methods

Static, Non-static and final fields and methods

Assessment

Quiz

Computers

11th - 12th Grade

Medium

Created by

Claire Firman

Used 18+ times

FREE Resource

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
or continue with
Microsoft
Apple
Others
By signing up, you agree to our Terms of Service & Privacy Policy
Already have an account?