Top Posters
Since Sunday
6
y
2
m
2
m
2
u
2
m
2
B
2
M
2
e
2
k
2
N
2
y
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 49 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
Thanks
wrote...

Yesterday
this is exactly what I needed
wrote...

2 hours ago
Helped a lot
New Topic      
Explore
Post your homework questions and get free online help from our incredible volunteers
  507 People Browsing
Related Images
  
 943
  
 4516
  
 395
Your Opinion
Which industry do you think artificial intelligence (AI) will impact the most?
Votes: 486