Static, Non-static and final fields and methods

Quiz
•
Computers
•
11th - 12th Grade
•
Medium
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
Similar Resources on Wayground
11 questions
Static/NonStatic

Quiz
•
9th - 12th Grade
10 questions
Java Inheritance Quiz

Quiz
•
11th Grade
10 questions
Database Fundamentals

Quiz
•
KG - University
15 questions
BTEC unit 2 databases - key terms

Quiz
•
12th Grade
13 questions
Week 8

Quiz
•
12th Grade
10 questions
Technical Terms - Internet (A-Z) - Static Website

Quiz
•
12th Grade
15 questions
Latihan_127

Quiz
•
11th Grade
10 questions
OOP 3 Encapsulation

Quiz
•
11th Grade
Popular Resources on Wayground
50 questions
Trivia 7/25

Quiz
•
12th Grade
11 questions
Standard Response Protocol

Quiz
•
6th - 8th Grade
11 questions
Negative Exponents

Quiz
•
7th - 8th Grade
12 questions
Exponent Expressions

Quiz
•
6th Grade
4 questions
Exit Ticket 7/29

Quiz
•
8th Grade
20 questions
Subject-Verb Agreement

Quiz
•
9th Grade
20 questions
One Step Equations All Operations

Quiz
•
6th - 7th Grade
18 questions
"A Quilt of a Country"

Quiz
•
9th Grade