About Question enthuware.ocpjp.ii.v11.2.3346 :
Posted: Wed Aug 07, 2019 5:21 am
Hi
The first answer choice is: "It is of type java.io.OutputStream.". It is wrong according to the Enthuware software.
However, just by looking inside the java code, we can see that a PrintWriter IS-A OutputStream. That also means instanceof operator would return true for example.
What's the catch here?
Thanks
The first answer choice is: "It is of type java.io.OutputStream.". It is wrong according to the Enthuware software.
However, just by looking inside the java code, we can see that a PrintWriter IS-A OutputStream. That also means instanceof operator would return true for example.
What's the catch here?
Thanks