Quiz
Java HomeWork Quiz 4
Erstelle ein kostenloses Konto, um dieses Quiz zu beenden
Speichere deinen Fortschritt und sieh dir dein Endergebnis an.
oder mit deiner E-Mail registrieren
Schon ein Konto? Anmelden
Fragen in diesem 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.
- ARichtig
- BFalsch
16All static member variables are initialized to -1 by default.
- ARichtig
- BFalsch
17A class may not have more than one constructor.
- ARichtig
- BFalsch
18When an object is passed as an argument to a method, the method can access the argument.
- ARichtig
- BFalsch
19A method cannot return a reference to an object.
- ARichtig
- BFalsch
20A private class that is defined inside another class is not visible to code outside the outer class.
- ARichtig
- BFalsch
21You can declare an enumerated data type inside a method.
- ARichtig
- BFalsch
22Enumerated data types are actually special types of classes.
- ARichtig
- BFalsch
23enum constants have a toString method.
- ARichtig
- BFalsch
Informationen
- Beschreibung
- Quiz am Java HomeWork Quiz 4, erstellt von Taylor Berry am 02/11/2017.
- Autor
- Taylor Berry
- Sprache
- English
- Aufrufe
- 2
- Bewertung
- Noch keine Bewertungen Bewerte dieses Quiz