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
12 questions
SQL-PHP-Login

Quiz
•
11th Grade
8 questions
WJEC Computer Science KO - Computational Thinking

Quiz
•
11th Grade
12 questions
U3O1 Informatics: Online Data Acquisition

Quiz
•
11th - 12th Grade
10 questions
Konfigurasi VLAN

Quiz
•
11th Grade
14 questions
1.4.1 LANs, WANs and Performance

Quiz
•
10th - 11th Grade
12 questions
Java Class vocabulary

Quiz
•
9th Grade - University
15 questions
002_Java Methods

Quiz
•
12th Grade - University
15 questions
Unit 2 Inheritance in Java

Quiz
•
12th Grade - University
Popular Resources on Wayground
10 questions
Lab Safety Procedures and Guidelines

Interactive video
•
6th - 10th Grade
10 questions
Nouns, nouns, nouns

Quiz
•
3rd Grade
10 questions
Appointment Passes Review

Quiz
•
6th - 8th Grade
25 questions
Multiplication Facts

Quiz
•
5th Grade
11 questions
All about me

Quiz
•
Professional Development
22 questions
Adding Integers

Quiz
•
6th Grade
15 questions
Subtracting Integers

Quiz
•
7th Grade
20 questions
Grammar Review

Quiz
•
6th - 9th Grade