subject

Show the output of running the class test in the following code lines:
interface a { }
class c { }
class b extends d implements a { }
public class test {
public static void main(string args) {
b b = new b();
if (b instanceof a)
system. out. println("b is an instance of a");
if (b instanceof c)
system. out. println("b is an instance of c");
}
}
class d extends c { }
a. nothing.
b. b is an instance of a.
c. b is an instance of c.
d. b is an instance of a followed by b is an instance of c.

ansver
Answers: 1

Another question on Computers and Technology

question
Computers and Technology, 23.06.2019 10:30
How would you categorize the software that runs on mobile devices? break down these apps into at least three basic categories and give an example of each.
Answers: 1
question
Computers and Technology, 23.06.2019 17:00
The camera still is bad even with the new iphone xr and especially in low light it is even worst because you can see the pixels more if its in low light. if all you apple customers want apple to fix this then lets fill there feedback with complaints about the can apple do to fix this issue?
Answers: 1
question
Computers and Technology, 24.06.2019 14:00
Text or graphics that print at the bottom of every page are called footings footers headers headings
Answers: 1
question
Computers and Technology, 24.06.2019 15:50
Andy would like to create a bulleted list. how should he do this? andy should click on the bullet icon or select the bullet option from the menu and then type the list. andy should press the shift key and the 8 key at the beginning of each line of text. andy should type the text and then click on the bullet command. andy should press return and the bullets will automatically
Answers: 2
You know the right answer?
Show the output of running the class test in the following code lines:
interface a { }
...
Questions
question
English, 05.12.2019 21:31
question
Mathematics, 05.12.2019 21:31