Geschreven door studenten die geslaagd zijn Direct beschikbaar na je betaling Online lezen of als PDF Verkeerd document? Gratis ruilen 4,6 TrustPilot
logo-home
Tentamen (uitwerkingen)

JAVA 3252 Chapter 11 polymorphism- Questions and Answers| Latest Update

Beoordeling
-
Verkocht
-
Pagina's
8
Cijfer
A+
Geüpload op
21-03-2025
Geschreven in
2024/2025

JAVA 3252 Chapter 11 polymorphism- Questions and Answers| Latest Update

Instelling
JAVA
Vak
JAVA

Voorbeeld van de inhoud

JAVA 3252 Chapter 11 polymorphism- Questions
and Answers| Latest Update
Which of the following statements about abstract superclasses is true?


A. abstract superclasses may contain data.
B. abstract superclasses may not contain implementations of methods.
C. abstract superclasses must declare all methods as abstract.

D. abstract superclasses must declare all data members not given values as abstract. ✔️✔️A.
abstract superclasses may contain data.


Consider classes A, B and C, where A is an abstract superclass, B is a concrete class that inherits
from A and C is a concrete class that inherits from B. Class A declares abstract method
originalMethod, implemented in class B. Which of the following statements is true of class C?


A. Method originalMethod cannot be overridden in class C—once it has been implemented in
concrete class B, it is implicitly final.
B. Method originalMethod must be overridden in class C, or a syntax error will occur.
C. If method originalMethod is not overridden in class C but is called by an object of class C, an
error occurs.

D. None of the above. ✔️✔️D. None of the above.


When a superclass variable refers to a subclass object and a method is called on that object, the
proper implementation is determined at execution time. What is the process of determining
the correct method to call?
A. execution time binding.
B. execution binding.
C. just-in-time binding.

D. late binding ✔️✔️D. late binding.

, Every object in Java knows its own class and can access this information through method .


A. getClass.
B. getInformation.
C. objectClass.

D. objectInformation. ✔️✔️A. getClass.


Assigning a subclass reference to a superclass variable is safe:


A. because the subclass object has an object of its superclass.
B. because the subclass object is an object of its superclass.
C. only when the superclass is abstract.

D. only when the superclass is concrete. ✔️✔️B. because the subclass object is an object of its
superclass.


Classes and methods are declared final for all but the following reasons:


A. final methods allow inlining the code.
B. final methods and classes prevent further inheritance.
C. final methods are static.

D. final methods can improve performance. ✔️✔️C. final methods are static.


All of the following methods are implicitly final except:


A. a method in an abstract class.
B. a private method.

Geschreven voor

Instelling
JAVA
Vak
JAVA

Documentinformatie

Geüpload op
21 maart 2025
Aantal pagina's
8
Geschreven in
2024/2025
Type
Tentamen (uitwerkingen)
Bevat
Vragen en antwoorden

Onderwerpen

$9.49
Krijg toegang tot het volledige document:

Verkeerd document? Gratis ruilen Binnen 14 dagen na aankoop en voor het downloaden kun je een ander document kiezen. Je kunt het bedrag gewoon opnieuw besteden.
Geschreven door studenten die geslaagd zijn
Direct beschikbaar na je betaling
Online lezen of als PDF


Ook beschikbaar in voordeelbundel

Thumbnail
Voordeelbundel
BUNDLE-::JAVA EXAMS WITH COMPLETE SOLUTIONS| LATEST UPDATE
-
44 2025
$ 436.56 Meer info

Maak kennis met de verkoper

Seller avatar
De reputatie van een verkoper is gebaseerd op het aantal documenten dat iemand tegen betaling verkocht heeft en de beoordelingen die voor die items ontvangen zijn. Er zijn drie niveau’s te onderscheiden: brons, zilver en goud. Hoe beter de reputatie, hoe meer de kwaliteit van zijn of haar werk te vertrouwen is.
Copilot Harvard University
Bekijk profiel
Volgen Je moet ingelogd zijn om studenten of vakken te kunnen volgen
Verkocht
23
Lid sinds
1 jaar
Aantal volgers
0
Documenten
4415
Laatst verkocht
3 weken geleden
A+ GRADES

ON THIS PAGE YOU WILL FIND VERIFIED STUDY MATERIALS TO BOOST YOUR CAREERS. (EXAMS, STUDY GUIDES, TEST BANKS, PRACTICE TEST QUESTIONS, TEXT BOOKS & CLASS NOTES FOR ALL COURSES) LETS WORK SMART TO EXCEL, WELCOME!!!

4.9

8 beoordelingen

5
7
4
1
3
0
2
0
1
0

Populaire documenten

Recent door jou bekeken

Waarom studenten kiezen voor Stuvia

Gemaakt door medestudenten, geverifieerd door reviews

Kwaliteit die je kunt vertrouwen: geschreven door studenten die slaagden en beoordeeld door anderen die dit document gebruikten.

Niet tevreden? Kies een ander document

Geen zorgen! Je kunt voor hetzelfde geld direct een ander document kiezen dat beter past bij wat je zoekt.

Betaal zoals je wilt, start meteen met leren

Geen abonnement, geen verplichtingen. Betaal zoals je gewend bent via iDeal of creditcard en download je PDF-document meteen.

Student with book image

“Gekocht, gedownload en geslaagd. Zo makkelijk kan het dus zijn.”

Alisha Student

Veelgestelde vragen