Closed protyay closed 6 years ago
Are you sure? Are you testing with Java 8?
I don't know if I'm missing something but I get a compiler error:
@eh3rrera I'm extremely sorry. I did happen to invoke the test routine on the reference type of the concrete class and NOT the interface. Sorry for bothering you..
Keep up the great work.
Don't worry, thanks! 👍
The answer key to the following question of Chapter 4(Q5) is Compilation Fails.
I've executed the bit of this code and this compiles just fine and the output is "Q test". Requesting you to please update the answer key accordingly.