100% satisfaction guarantee Immediately available after payment Both online and in PDF No strings attached
logo-home
CSIT121 Exam Revision Questions & 100% Solutions (Verified Answers $13.24   Add to cart

Exam (elaborations)

CSIT121 Exam Revision Questions & 100% Solutions (Verified Answers

 0 view  0 purchase
  • Course
  • CSIT121
  • Institution
  • CSIT121

CSIT121 Exam Revision Questions & 100% Solutions (Verified Answer

Preview 3 out of 19  pages

  • September 7, 2024
  • 19
  • 2024/2025
  • Exam (elaborations)
  • Questions & answers
  • CSIT121
  • CSIT121
avatar-seller
KenAli
CSIT121 Exam Revision Questions &
100% Solutions (Verified Answers)

Commonality is expressed in the members of the superclass - ✔✔True



A subc can inherit methods that does not need/should not have - ✔✔True



Even when a superclass method is appropriate for a subclass, that subclass often needs a customized
version of the method. - ✔✔True



The subclass can override (redefine) superclass method with an appropriate implementation -
✔✔True



A class' s public members are accessible wherever the program has a ref to an object of that class or
one of its subclasses. - ✔✔True



A class' s private members are accessible only within the class itself - ✔✔True



protected access is an intermediate level of access between public and private - ✔✔True



A superclass's protected members can't be accessed by members of that superclass - ✔✔False



A superclass's protected members can be accessed by members of other classes of the same package -
✔✔True

,protected members also have package access - ✔✔True



All public and protected superclass members retain their original access modifier when they
become members of the subclass. - ✔✔True



A superclass' s private members are hidden from its subclasses - ✔✔True



A superclass' s private members can be accessed only through the public or protected
methods inherited from the superclass. - ✔✔True



Subclass methods can refer to public and protected members inherited from the superclass simply
by using the member names - ✔✔True



When a subclass method overrides an inherited superclass method, the superclass version of the
method can be accessed from the subclass by preceding the superclass method name with
keyword super and a dot(.) separator. - ✔✔True



Constructors are not inherited - ✔✔True



The first task of a subclass constructor is not to call its direct superclass's constructor explicitly or
implicitly - ✔✔False. Its the 1st task to ensure the instance variables inherited from the superclass
are initialized properly.



If the code doesn't include an explicit call to the superclass constructor, Java explicit call to the
superclass constructor, Java implicitly calls the superclass's default or no-argument constructor
- ✔✔True



A class's default constructor calls the superclass's default or no-argument constructor. - ✔✔True



toString is called implicitly whenever an object must be converted to a String representation -
✔✔True

, To override a superclass method, a subclass must declare a method with the same signature as
the superclass method. - ✔✔TRUE



subclass inherits superclass's variables and methods. - ✔✔true



Only superclass's public and protected members are directly accessible in the subclass - ✔✔TRUE



Each subclass constructor must implicitly or explicitly call one if its superclass's constructors to initialize
the instance variables inherited from the superclass. - ✔✔TRUE



Superclass constructor call syntax-SUPER, followed by a set of parentheses containing the superclass
constructor arguments. - ✔✔TRUE



Its okay for the subclass not to invoke the superclass's constructor explicitly - ✔✔If the subclass didn't
invoke the superclass's constructor explicitly, the compiler would attempt to insert a call to the
superclass's default or no-argument constructor



Instantiating a subclass object begins a chain of constructor calls. - ✔✔TRUE



The subclass constructor, before performing its tasks, explicitly uses super to call one of the
constructors in its direct superclass or implicitly calls the superclass's default or no-argument
constructor - ✔✔TRUE



If the superclass is derived from another class, their superclass constructor invokes the constructor
of the next class up the hierarchy, and so on. - ✔✔TRUE



The last constructor called in the chain is not always Object's constructor, but the Object's constructor is
the first to be implemented. - ✔✔The last constructor called in the chain is always Object's
constructor, but the Object's constructor is the first to be implemented. Original subclass constructor's
body finishes executing last (LIFS)

The benefits of buying summaries with Stuvia:

Guaranteed quality through customer reviews

Guaranteed quality through customer reviews

Stuvia customers have reviewed more than 700,000 summaries. This how you know that you are buying the best documents.

Quick and easy check-out

Quick and easy check-out

You can quickly pay through credit card or Stuvia-credit for the summaries. There is no membership needed.

Focus on what matters

Focus on what matters

Your fellow students write the study notes themselves, which is why the documents are always reliable and up-to-date. This ensures you quickly get to the core!

Frequently asked questions

What do I get when I buy this document?

You get a PDF, available immediately after your purchase. The purchased document is accessible anytime, anywhere and indefinitely through your profile.

Satisfaction guarantee: how does it work?

Our satisfaction guarantee ensures that you always find a study document that suits you well. You fill out a form, and our customer service team takes care of the rest.

Who am I buying these notes from?

Stuvia is a marketplace, so you are not buying this document from us, but from seller KenAli. Stuvia facilitates payment to the seller.

Will I be stuck with a subscription?

No, you only buy these notes for $13.24. You're not tied to anything after your purchase.

Can Stuvia be trusted?

4.6 stars on Google & Trustpilot (+1000 reviews)

75323 documents were sold in the last 30 days

Founded in 2010, the go-to place to buy study notes for 14 years now

Start selling
$13.24
  • (0)
  Add to cart