Top Posters
Since Sunday
G
4
K
3
o
3
3
m
2
c
2
r
2
p
2
s
2
s
2
b
2
c
2
New Topic  
SPP24 SPP24
wrote...
Posts: 454
4 years ago
Given the following code:

class C1 {}
class C2 extends C1 { }
class C3 extends C2 { }
class C4 extends C1 {}

C1 c1 = new C1();
C2 c2 = new C2();
C3 c3 = new C3();
C4 c4 = new C4();

Which of the following expressions evaluates to false?

▸ c2 instanceof C1

▸ c1 instanceof C1

▸ c4 instanceof C2

▸ c3 instanceof C1
Textbook 
Introduction to Java Programming, Comprehensive Version

Introduction to Java Programming, Comprehensive Version


Edition: 10th
Author:
Read 40 times
1 Reply
Replies
Answer verified by a subject expert
AndreasnlnvldAndreasnlnvld
wrote...
Posts: 381
4 years ago
Sign in or Sign up in seconds to unlock everything for free
More solutions for this book are available here

Related Topics

SPP24 Author
wrote...

4 years ago
Helped a lot
wrote...

Yesterday
Brilliant
wrote...

2 hours ago
I appreciate what you did here, answered it right Smiling Face with Open Mouth
New Topic      
Explore
Post your homework questions and get free online help from our incredible volunteers
  1093 People Browsing
Related Images
  
 330
  
 1415
  
 349
Your Opinion
Who will win the 2024 president election?
Votes: 10
Closes: November 4

Previous poll results: Do you believe in global warming?