Top Posters
Since Sunday
c
5
j
5
a
5
L
5
f
5
j
5
D
4
k
4
y
4
t
4
h
4
l
4
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 37 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
Thanks
wrote...

2 hours ago
Just got PERFECT on my quiz
New Topic      
Explore
Post your homework questions and get free online help from our incredible volunteers
  874 People Browsing
Related Images
  
 1214
  
 273
  
 641
Your Opinion
What's your favorite math subject?
Votes: 315