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, 22.06.2019 11:30
Andrina writes letters that are regularly sent to hundreds of her company’s customers. because of this, she would like for the mail merge command to be in her quick access toolbar, and she wants it to be the first button on the left. what should andrina do to place the mail merge button there?
Answers: 1
question
Computers and Technology, 23.06.2019 21:30
To move a file or folder in microsoft windows, you can click and hold down the left mouse button while moving your mouse pointer to the location you want the file or folder to be, which is also known as.
Answers: 3
question
Computers and Technology, 24.06.2019 09:00
Why might you chose to crest a function resume
Answers: 1
question
Computers and Technology, 24.06.2019 12:00
How can we take picture in this app
Answers: 1
You know the right answer?
Show the output of running the class test in the following code lines:
interface a { }
...
Questions
question
Mathematics, 05.05.2020 04:29
question
Mathematics, 05.05.2020 04:29
question
English, 05.05.2020 04:29
question
Biology, 05.05.2020 04:29
question
Biology, 05.05.2020 04:29
Questions on the website: 13722360