subject

Consider the following interface & class definitions.

public interface ClassA

{

public void methodA();

}

public class ClassB implements ClassA

{

public void methodA() { /* ... some code ... */ }

}

public class ClassC extends ClassB

{

public void methodC( ClassC obj ) { /* ... some code ... */ }

}

Consider the following statements in a client class.

ClassC objC = new ClassC();

ClassB objB = new ClassB();

Which of the following method calls would be permissible?

objB. methodC(objC);

objC. methodC(objB);

objC. methodA();

Answers:

A.

I only

B.

II only

C.

III only

D.

II and III only

E.

I, II, and III

ansver
Answers: 2

Another question on Computers and Technology

question
Computers and Technology, 22.06.2019 12:40
How do i get the most points, without any effort?
Answers: 2
question
Computers and Technology, 22.06.2019 14:20
Consider a byte-addressable computer with 16mb of main memory, a cache capable of storing a total of 64kb of data and block size of 32 bytes. (a) how many bits in the memory address? (b) how many blocks are in the cache? (c) specify the format of the memory address, including names and sizes, when the cache is: 1. direct-mapped 2. 4-way set associative 3. fully associative
Answers: 2
question
Computers and Technology, 24.06.2019 11:00
Under the home tab, where can a user find options to change the bullet style of an outline? in the slides group in the font group in the paragraph group in the drawing group
Answers: 1
question
Computers and Technology, 24.06.2019 13:20
3. ranga ramasesh is the operations manager for a firm that is trying to decide which one of four countries it should research for possible outsourcing providers. the first step is to select a country based on cultural risk factors, which are critical to eventual business success with the provider. ranga has reviewed outsourcing provider directories and found that the four countries in the table that follows have an ample number of providers from which they can choose. to aid in the country selection step, he has enlisted the aid of a cultural expert, john wang, who has provided ratings of the various criteria in the table. the resulting ratings are on a 1 to 10 scale, where 1 is a low risk and 10 is a high risk. john has also determined six criteria weightins: trust, with a weight of 0.3; quality, with 0.2; religious, with 0.1; individualism, with 0.2; time, with 0.1; and uncertainity, with 0.1. using the factor-rating method, which country should ranga select? why? (2 points)
Answers: 3
You know the right answer?
Consider the following interface & class definitions.

public interface ClassA
...
Questions
question
Mathematics, 19.03.2021 20:40
Questions on the website: 13722361