Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

(Abstract and Interface Classes) 6) An interface name can be used to Which of these keywords cannot be used for a elass which has been

image text in transcribed
(Abstract and Interface Classes) 6) An interface name can be used to Which of these keywords cannot be used for a elass which has been deciared tinal? A. Protected .abstract .extends O. Both F. None of t 8) Suppose X is an abstract class, v is a concrete subclass of x, and both X and Y hasa default construetor. which of the following is correct? (more than one answer here) b-new x(); D) Y b-new Y(); Which of the following statements are true about abstract classes? (more than the one answer in the questions) 9) A) An abstract method cannot be contained in a nonabstract class B) If a subclass of an abstract superclass does not implement all the abstract methods, the subclass must be declared abstract. An abstract class cannot be instantiated using the new operator. C) D) It is possible to declare an abstract class that contains no abstract methods. E) A subclass can be abstract even if its superclass is concrete. 10) How many String objects are instantiated by the following code segment ? String s1, output; s1 "hello" output InThe string reversed is: for (int i # s 1.length()-1; >:0; ..) output +#51.charAt(i) + " " ; A. 1 D. 7

Step by Step Solution

There are 3 Steps involved in it

Step: 1

blur-text-image

Get Instant Access to Expert-Tailored Solutions

See step-by-step solutions with expert insights and AI powered tools for academic success

Step: 2

blur-text-image

Step: 3

blur-text-image

Ace Your Homework with AI

Get the answers you need in no time with our AI-driven, step-by-step assistance

Get Started

Recommended Textbook for

Database Systems Design Implementation And Management

Authors: Peter Robb,Carlos Coronel

5th Edition

061906269X, 9780619062699

More Books

Students also viewed these Databases questions

Question

=+ c. a company president deciding whether to open a new factory

Answered: 1 week ago