Liutauras Vilda wrote:Try to check official resources at Oracle in Review Exam Topics section.
My personal opinion, it isn't on the exam, but I'm not certain.
On the other hand, I think it usually would take longer to find an answer if it is on exam or not than understand "instanceof" operator itself. Regardless, just read about it, learn - look at it wider. Purpose is to learn something, not just pass exam, so if the book gives such an ability of learning, just learn and don't bother whether it is on exam or not.
Liutauras Vilda wrote:What that would change for you?
Campbell Ritchie wrote:Moving out of the results forum.
That is the usual behaviour of instanceof which you can read about in the Java® Language Specification (=JLS). It also tells you what the result of adding apples and oranges in your example would be. You need to know about how instanceof behaves when presented with a null as its right operand in order to write a correct equals() method.Daniele Barell wrote:. . . The answer is false but it's a nuance as the a the type IS-A String . . .
Liutauras Vilda wrote:Ok, I see your concerns. These might be valid. But I'm still on the same, I'd say just go through this topic, finally it shouldn't extend your learning efforts significantly in the full context of preparation.
One of my professors in uni (it was Software and Programming III module) some time ago said: "You'll struggle in this module due to the material size it covers and courseworks it contains, most likely you'll curse me, some of you, actually most of you will hate me - and finally you'll thank me after some time.". I did my last part![]()
Appreciate what you manage to learn and actually understand during the preparation, so go for it without a second thought.
Also, in case things happen, don't concentrate on side pieces as what material they give during exam, they give one pen or two, why they don't give three. Do they allow take notes out, why not. Can you do that or that, is mouse wireless or cordless or laser... - saying this because you'd be surprised how much energy people spend finding out those things.
Liutauras Vilda wrote:
Get knowledge, and other things will have less and less significance. Good luck on exam. Don't forget to come back so we could congratulate youTo most of people I say, don't give pressure to yourself - be prepared to lose also, and in case that happens, remember - it isn't the end, once you put efforts, good day will come sooner or later. Don't put too much weight on the exam. Just go for fun and for a nice puzzle challenge day.
Liutauras Vilda wrote:
When you finish with book - I'd recommend to get some mock tests to get some actual sense of the exam flow, so that would be useful for sure.
Campbell Ritchie wrote:
That is the usual behaviour of instanceof which you can read about in the Java® Language Specification (=JLS). It also tells you what the result of adding apples and oranges in your example would be. You need to know about how instanceof behaves when presented with a null as its right operand in order to write a correct equals() method.Daniele Barell wrote:. . . The answer is false but it's a nuance as the a the type IS-A String . . .
Daniele Barell wrote:I can see JLS is fundamental... but don't you feel
when you read it?
[OCP 21 book] | [OCP 17 book] | [OCP 11 book] | [OCA 8 book] [OCP 8 book] [Practice tests book] [Blog] [JavaRanch FAQ] [How To Ask Questions] [Book Promos]
Other Certs: SCEA Part 1, Part 2 & 3, Core Spring 3, TOGAF part 1 and part 2
Don't get me started about those stupid light bulbs. |