Quiz
Java HomeWork Quiz 4
Create a free account to finish this quiz
Save your progress and see your final score.
Already have an account? Sign in
Questions in this quiz (23)
1This type of method cannot access any nonstatic member variables in its own class.
- Ainstance
- Bvoid
- Cstatic
- Dnonstatic
2Two or more methods in a class may have the same name, as long as this is different.
- Atheir return values
- Btheir access specifier
- Ctheir signatures
- Dtheir memory address
3The process of matching a method call with the correct method is known as
- Amatching
- Bbinding
- Clinking
- Dconnecting
4When an object is passed as an argument to a method, this is actually passed.
- Aa copy of the object
- Bthe name of the object
- Ca reference to the object
- DNone of these. You cannot pass an object
5If you write this method for a class, Java will automatically call it any time you concatenate an object of the class with a string
- AtoString
- BplusString
- CstringConvert
- DconcatString
6Making an instance of one class a field in another class is called
- Anesting
- Bclass fielding
- Caggregation
- Dconcatenation
7This is the name of a reference variable that is always available to an instance method and refers to the object that is calling the method.
- AcallingObject
- Bthis
- Cme
- Dinstance
8This enum method returns the position of an enum constant in the declaration.
- Aposition
- Blocation
- Cordinal
- DtoString
9Assuming the following declaration exists:
enum Season { SPRING, WINTER, SUMMER, FALL}
What is the fully qualified name of the FALL constant?- AFALL
- Benum.FALL
- CFALL.Seasons
- DSeasons.FALL
10You cannot use the fully qualified name of an enum constant for this.
- Aa switch expression
- Ba case expression
- Can argument to a method.
- Dall of these
11A class that is defined inside of another class is called a(n)
- Ainner class
- Bfolded class
- Chidden class
- Dunknown class
12The JVM periodically performs this process, which automatically removes unreferenced objects from memory.
- Amemory cleansing
- Bmemory deallocation
- Cgarbage collection
- Dobject expungement
13If a class has this method, it is called automatically just before an instance of the class is destroyed by the JVM
- Afinalize
- Bdestroy
- Cremove
- Dhousekeeper
14CRC stands for
- AClass, Return Value, Composition
- BClass, Responsibilities, Collaborations
- CClass, Responsibilities, Composition
- DCompare, Return, Continue
15A static member method may refer to nonstatic member variables of the same class at any time.
- ATrue
- BFalse
16All static member variables are initialized to -1 by default.
- ATrue
- BFalse
17A class may not have more than one constructor.
- ATrue
- BFalse
18When an object is passed as an argument to a method, the method can access the argument.
- ATrue
- BFalse
19A method cannot return a reference to an object.
- ATrue
- BFalse
20A private class that is defined inside another class is not visible to code outside the outer class.
- ATrue
- BFalse
21You can declare an enumerated data type inside a method.
- ATrue
- BFalse
22Enumerated data types are actually special types of classes.
- ATrue
- BFalse
23enum constants have a toString method.
- ATrue
- BFalse
Information
- Description
- Quiz on Java HomeWork Quiz 4, created by Taylor Berry on 02/11/2017.
- Author
- Taylor Berry
- Language
- English
- Views
- 2
- Rating
- No ratings yet Rate this quiz